sindaout.vim 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. " Vim syntax file
  2. " Language: sinda85, sinda/fluint output file
  3. " Maintainer: Adrian Nagle, anagle@ball.com
  4. " Last Change: 2003 May 11
  5. " Filenames: *.out
  6. " URL: http://www.naglenet.org/vim/syntax/sindaout.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 match
  14. " Load SINDA syntax file
  15. runtime! syntax/sinda.vim
  16. unlet b:current_syntax
  17. "
  18. "
  19. " Begin syntax definitions for sinda output files.
  20. "
  21. " Define keywords for sinda output
  22. syn case match
  23. syn keyword sindaoutPos ON SI
  24. syn keyword sindaoutNeg OFF ENG
  25. " Define matches for sinda output
  26. syn match sindaoutFile ": \w*\.TAK"hs=s+2
  27. syn match sindaoutInteger "T\=[0-9]*\>"ms=s+1
  28. syn match sindaoutSectionDelim "[-<>]\{4,}" contains=sindaoutSectionTitle
  29. syn match sindaoutSectionDelim ":\=\.\{4,}:\=" contains=sindaoutSectionTitle
  30. syn match sindaoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
  31. syn match sindaoutHeaderDelim "=\{5,}"
  32. syn match sindaoutHeaderDelim "|\{5,}"
  33. syn match sindaoutHeaderDelim "+\{5,}"
  34. syn match sindaoutLabel "Input File:" contains=sindaoutFile
  35. syn match sindaoutLabel "Begin Solution: Routine"
  36. syn match sindaoutError "<<< Error >>>"
  37. " Define the default highlighting
  38. " Only when an item doesn't have highlighting yet
  39. hi sindaHeaderDelim ctermfg=Black ctermbg=Green guifg=Black guibg=Green
  40. hi def link sindaoutPos Statement
  41. hi def link sindaoutNeg PreProc
  42. hi def link sindaoutTitle Type
  43. hi def link sindaoutFile sindaIncludeFile
  44. hi def link sindaoutInteger sindaInteger
  45. hi def link sindaoutSectionDelim Delimiter
  46. hi def link sindaoutSectionTitle Exception
  47. hi def link sindaoutHeaderDelim SpecialComment
  48. hi def link sindaoutLabel Identifier
  49. hi def link sindaoutError Error
  50. let b:current_syntax = "sindaout"
  51. " vim: ts=8 sw=2