sindacmp.vim 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. " Vim syntax file
  2. " Language: sinda85, sinda/fluint 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/sindacmp.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. " Begin syntax definitions for compare files.
  16. "
  17. " Define keywords for sinda compare (sincomp)
  18. syn keyword sindacmpUnit celsius fahrenheit
  19. " Define matches for sinda compare (sincomp)
  20. syn match sindacmpTitle "Steady State Temperature Comparison"
  21. syn match sindacmpLabel "File [1-6] is"
  22. syn match sindacmpHeader "^ *Node\( *File \d\)* *Node Description"
  23. syn match sindacmpInteger "^ *-\=\<[0-9]*\>"
  24. syn match sindacmpFloat "-\=\<[0-9]*\.[0-9]*"
  25. " Define the default highlighting
  26. " Only when an item doesn't have highlighting yet
  27. hi def link sindacmpTitle Type
  28. hi def link sindacmpUnit PreProc
  29. hi def link sindacmpLabel Statement
  30. hi def link sindacmpHeader sindaHeader
  31. hi def link sindacmpInteger Number
  32. hi def link sindacmpFloat Special
  33. let b:current_syntax = "sindacmp"
  34. " vim: ts=8 sw=2