tssop.vim 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. " Vim syntax file
  2. " Language: TSS (Thermal Synthesizer System) Optics
  3. " Maintainer: Adrian Nagle, anagle@ball.com
  4. " Last Change: 2003 May 11
  5. " Filenames: *.tssop
  6. " URL: http://www.naglenet.org/vim/syntax/tssop.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 tss optics file.
  17. "
  18. " Define keywords for TSS
  19. syn keyword tssopParam ir_eps ir_trans ir_spec ir_tspec ir_refract
  20. syn keyword tssopParam sol_eps sol_trans sol_spec sol_tspec sol_refract
  21. syn keyword tssopParam color
  22. "syn keyword tssopProp property
  23. syn keyword tssopArgs white red blue green yellow orange violet pink
  24. syn keyword tssopArgs turquoise grey black
  25. " Define matches for TSS
  26. syn match tssopComment /comment \+= \+".*"/ contains=tssopParam,tssopCommentString
  27. syn match tssopCommentString /".*"/ contained
  28. syn match tssopProp "property "
  29. syn match tssopProp "edit/optic "
  30. syn match tssopPropName "^property \S\+" contains=tssopProp
  31. syn match tssopPropName "^edit/optic \S\+$" contains=tssopProp
  32. syn match tssopInteger "-\=\<[0-9]*\>"
  33. syn match tssopFloat "-\=\<[0-9]*\.[0-9]*"
  34. syn match tssopScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"
  35. " Define the default highlighting
  36. " Only when an item doesn't have highlighting yet
  37. hi def link tssopParam Statement
  38. hi def link tssopProp Identifier
  39. hi def link tssopArgs Special
  40. hi def link tssopComment Statement
  41. hi def link tssopCommentString Comment
  42. hi def link tssopPropName Typedef
  43. hi def link tssopInteger Number
  44. hi def link tssopFloat Float
  45. hi def link tssopScientific Float
  46. let b:current_syntax = "tssop"
  47. " vim: ts=8 sw=2