blob: 5e5d3607677879cdd207f58d041e6c7ed4fddd1b [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: TAK2, TAK3, TAK2000 thermal modeling 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/takout.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 TAK syntax file
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020024runtime! syntax/tak.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +000025unlet b:current_syntax
26
27
28
29"
30"
31" Begin syntax definitions for tak output files.
32"
33
34" Define keywords for TAK output
35syn case match
36
37syn keyword takoutPos ON SI
38syn keyword takoutNeg OFF ENG
39
40
41
42" Define matches for TAK output
43syn match takoutTitle "TAK III"
44syn match takoutTitle "Release \d.\d\d"
45syn match takoutTitle " K & K Associates *Thermal Analysis Kit III *Serial Number \d\d-\d\d\d"
46
47syn match takoutFile ": \w*\.TAK"hs=s+2
48
49syn match takoutInteger "T\=[0-9]*\>"ms=s+1
50
51syn match takoutSectionDelim "[-<>]\{4,}" contains=takoutSectionTitle
52syn match takoutSectionDelim ":\=\.\{4,}:\=" contains=takoutSectionTitle
53syn match takoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
54
55syn match takoutHeaderDelim "=\{5,}"
56syn match takoutHeaderDelim "|\{5,}"
57syn match takoutHeaderDelim "+\{5,}"
58
59syn match takoutLabel "Input File:" contains=takoutFile
60syn match takoutLabel "Begin Solution: Routine"
61
62syn match takoutError "<<< Error >>>"
63
64
65" Define the default highlighting
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020066" Only when an item doesn't have highlighting yet
Bram Moolenaar071d4272004-06-13 20:20:40 +000067
Bram Moolenaarf37506f2016-08-31 22:22:10 +020068hi def link takoutPos Statement
69hi def link takoutNeg PreProc
70hi def link takoutTitle Type
71hi def link takoutFile takIncludeFile
72hi def link takoutInteger takInteger
Bram Moolenaar071d4272004-06-13 20:20:40 +000073
Bram Moolenaarf37506f2016-08-31 22:22:10 +020074hi def link takoutSectionDelim Delimiter
75hi def link takoutSectionTitle Exception
76hi def link takoutHeaderDelim SpecialComment
77hi def link takoutLabel Identifier
Bram Moolenaar071d4272004-06-13 20:20:40 +000078
Bram Moolenaarf37506f2016-08-31 22:22:10 +020079hi def link takoutError Error
Bram Moolenaar071d4272004-06-13 20:20:40 +000080
Bram Moolenaar071d4272004-06-13 20:20:40 +000081
82
83let b:current_syntax = "takout"
84
85" vim: ts=8 sw=2