blob: b4fb177f0636a23f1cb8b3e9e0b96c9f0db8938f [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
9
10
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020011" quit when a syntax file was already loaded
12if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000013 finish
14endif
15
16
17
18" Ignore case
19syn case match
20
21
22
23" Load SINDA syntax file
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020024runtime! syntax/sinda.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +000025unlet b:current_syntax
26
27
28
29"
30"
31" Begin syntax definitions for sinda output files.
32"
33
34" Define keywords for sinda output
35syn case match
36
37syn keyword sindaoutPos ON SI
38syn keyword sindaoutNeg OFF ENG
39
40
41
42" Define matches for sinda output
43syn match sindaoutFile ": \w*\.TAK"hs=s+2
44
45syn match sindaoutInteger "T\=[0-9]*\>"ms=s+1
46
47syn match sindaoutSectionDelim "[-<>]\{4,}" contains=sindaoutSectionTitle
48syn match sindaoutSectionDelim ":\=\.\{4,}:\=" contains=sindaoutSectionTitle
49syn match sindaoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
50
51syn match sindaoutHeaderDelim "=\{5,}"
52syn match sindaoutHeaderDelim "|\{5,}"
53syn match sindaoutHeaderDelim "+\{5,}"
54
55syn match sindaoutLabel "Input File:" contains=sindaoutFile
56syn match sindaoutLabel "Begin Solution: Routine"
57
58syn match sindaoutError "<<< Error >>>"
59
60
61" Define the default highlighting
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020062" Only when an item doesn't have highlighting yet
63command -nargs=+ HiLink hi def link <args>
Bram Moolenaar071d4272004-06-13 20:20:40 +000064
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020065hi sindaHeaderDelim ctermfg=Black ctermbg=Green guifg=Black guibg=Green
Bram Moolenaar071d4272004-06-13 20:20:40 +000066
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020067HiLink sindaoutPos Statement
68HiLink sindaoutNeg PreProc
69HiLink sindaoutTitle Type
70HiLink sindaoutFile sindaIncludeFile
71HiLink sindaoutInteger sindaInteger
Bram Moolenaar071d4272004-06-13 20:20:40 +000072
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020073HiLink sindaoutSectionDelim Delimiter
74HiLink sindaoutSectionTitle Exception
75HiLink sindaoutHeaderDelim SpecialComment
76HiLink sindaoutLabel Identifier
Bram Moolenaar071d4272004-06-13 20:20:40 +000077
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020078HiLink sindaoutError Error
Bram Moolenaar071d4272004-06-13 20:20:40 +000079
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020080delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000081
82
83let b:current_syntax = "sindaout"
84
85" vim: ts=8 sw=2