2 " Language: sinda85, sinda/fluint output file
3 " Maintainer: Adrian Nagle, anagle@ball.com
4 " Last Change: 2003 May 11
6 " URL: http://www.naglenet.org/vim/syntax/sindaout.vim
7 " MAIN URL: http://www.naglenet.org/vim/
11 " For version 5.x: Clear all syntax items
12 " For version 6.x: Quit when a syntax file was already loaded
15 elseif exists("b:current_syntax")
26 " Load SINDA syntax file
28 source <sfile>:p:h/sinda.vim
30 runtime! syntax/sinda.vim
32 unlet b:current_syntax
38 " Begin syntax definitions for sinda output files.
41 " Define keywords for sinda output
44 syn keyword sindaoutPos ON SI
45 syn keyword sindaoutNeg OFF ENG
49 " Define matches for sinda output
50 syn match sindaoutFile ": \w*\.TAK"hs=s+2
52 syn match sindaoutInteger "T\=[0-9]*\>"ms=s+1
54 syn match sindaoutSectionDelim "[-<>]\{4,}" contains=sindaoutSectionTitle
55 syn match sindaoutSectionDelim ":\=\.\{4,}:\=" contains=sindaoutSectionTitle
56 syn match sindaoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
58 syn match sindaoutHeaderDelim "=\{5,}"
59 syn match sindaoutHeaderDelim "|\{5,}"
60 syn match sindaoutHeaderDelim "+\{5,}"
62 syn match sindaoutLabel "Input File:" contains=sindaoutFile
63 syn match sindaoutLabel "Begin Solution: Routine"
65 syn match sindaoutError "<<< Error >>>"
68 " Define the default highlighting
69 " For version 5.7 and earlier: only when not done already
70 " For version 5.8 and later: only when an item doesn't have highlighting yet
71 if version >= 508 || !exists("did_sindaout_syntax_inits")
73 let did_sindaout_syntax_inits = 1
74 command -nargs=+ HiLink hi link <args>
76 command -nargs=+ HiLink hi def link <args>
79 hi sindaHeaderDelim ctermfg=Black ctermbg=Green guifg=Black guibg=Green
81 HiLink sindaoutPos Statement
82 HiLink sindaoutNeg PreProc
83 HiLink sindaoutTitle Type
84 HiLink sindaoutFile sindaIncludeFile
85 HiLink sindaoutInteger sindaInteger
87 HiLink sindaoutSectionDelim Delimiter
88 HiLink sindaoutSectionTitle Exception
89 HiLink sindaoutHeaderDelim SpecialComment
90 HiLink sindaoutLabel Identifier
92 HiLink sindaoutError Error
98 let b:current_syntax = "sindaout"