takcmp.vim 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. " Vim syntax file
  2. " Language: TAK2, TAK3, TAK2000 thermal modeling compare file
  3. " Maintainer: Adrian Nagle, anagle@ball.com
  4. " Last Change: 2003 May 11
  5. " Filenames: *.cmp
  6. " URL: http://www.naglenet.org/vim/syntax/takcmp.vim
  7. " MAIN URL: http://www.naglenet.org/vim/
  8. " quit when a syntax file was already loaded
  9. if exists("b:current_syntax")
  10. finish
  11. endif
  12. " Ignore case
  13. syn case ignore
  14. "
  15. "
  16. " Begin syntax definitions for compare files.
  17. "
  18. " Define keywords for TAK compare
  19. syn keyword takcmpUnit celsius fahrenheit
  20. " Define matches for TAK compare
  21. syn match takcmpTitle "Steady State Temperature Comparison"
  22. syn match takcmpLabel "Run Date:"
  23. syn match takcmpLabel "Run Time:"
  24. syn match takcmpLabel "Temp. File \d Units:"
  25. syn match takcmpLabel "Filename:"
  26. syn match takcmpLabel "Output Units:"
  27. syn match takcmpHeader "^ *Node\( *File \d\)* *Node Description"
  28. syn match takcmpDate "\d\d\/\d\d\/\d\d"
  29. syn match takcmpTime "\d\d:\d\d:\d\d"
  30. syn match takcmpInteger "^ *-\=\<[0-9]*\>"
  31. syn match takcmpFloat "-\=\<[0-9]*\.[0-9]*"
  32. " Define the default highlighting
  33. " Only when an item doesn't have highlighting yet
  34. hi def link takcmpTitle Type
  35. hi def link takcmpUnit PreProc
  36. hi def link takcmpLabel Statement
  37. hi def link takcmpHeader takHeader
  38. hi def link takcmpDate Identifier
  39. hi def link takcmpTime Identifier
  40. hi def link takcmpInteger Number
  41. hi def link takcmpFloat Special
  42. let b:current_syntax = "takcmp"
  43. " vim: ts=8 sw=2