Merge branch 'vim-with-runtime' into feat/quickfix-title
[vim_extended.git] / runtime / syntax / sindaout.vim
blobb557e017ebbe198687c0420721fe6297e506cb86
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/
11 " For version 5.x: Clear all syntax items
12 " For version 6.x: Quit when a syntax file was already loaded
13 if version < 600
14   syntax clear
15 elseif exists("b:current_syntax")
16   finish
17 endif
21 " Ignore case
22 syn case match
26 " Load SINDA syntax file
27 if version < 600
28   source <sfile>:p:h/sinda.vim
29 else
30   runtime! syntax/sinda.vim
31 endif
32 unlet b:current_syntax
38 " Begin syntax definitions for sinda output files.
41 " Define keywords for sinda output
42 syn case match
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")
72   if version < 508
73     let did_sindaout_syntax_inits = 1
74     command -nargs=+ HiLink hi link <args>
75   else
76     command -nargs=+ HiLink hi def link <args>
77   endif
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
94   delcommand HiLink
95 endif
98 let b:current_syntax = "sindaout"
100 " vim: ts=8 sw=2