2 " Language: TAK2, TAK3, TAK2000 thermal modeling output file
3 " Maintainer: Adrian Nagle, anagle@ball.com
4 " Last Change: 2003 May 11
6 " URL: http://www.naglenet.org/vim/syntax/takout.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 TAK syntax file
28 source <sfile>:p:h/tak.vim
30 runtime! syntax/tak.vim
32 unlet b:current_syntax
38 " Begin syntax definitions for tak output files.
41 " Define keywords for TAK output
44 syn keyword takoutPos ON SI
45 syn keyword takoutNeg OFF ENG
49 " Define matches for TAK output
50 syn match takoutTitle "TAK III"
51 syn match takoutTitle "Release \d.\d\d"
52 syn match takoutTitle " K & K Associates *Thermal Analysis Kit III *Serial Number \d\d-\d\d\d"
54 syn match takoutFile ": \w*\.TAK"hs=s+2
56 syn match takoutInteger "T\=[0-9]*\>"ms=s+1
58 syn match takoutSectionDelim "[-<>]\{4,}" contains=takoutSectionTitle
59 syn match takoutSectionDelim ":\=\.\{4,}:\=" contains=takoutSectionTitle
60 syn match takoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
62 syn match takoutHeaderDelim "=\{5,}"
63 syn match takoutHeaderDelim "|\{5,}"
64 syn match takoutHeaderDelim "+\{5,}"
66 syn match takoutLabel "Input File:" contains=takoutFile
67 syn match takoutLabel "Begin Solution: Routine"
69 syn match takoutError "<<< Error >>>"
72 " Define the default highlighting
73 " For version 5.7 and earlier: only when not done already
74 " For version 5.8 and later: only when an item doesn't have highlighting yet
75 if version >= 508 || !exists("did_takout_syntax_inits")
77 let did_takout_syntax_inits = 1
78 command -nargs=+ HiLink hi link <args>
80 command -nargs=+ HiLink hi def link <args>
83 HiLink takoutPos Statement
84 HiLink takoutNeg PreProc
85 HiLink takoutTitle Type
86 HiLink takoutFile takIncludeFile
87 HiLink takoutInteger takInteger
89 HiLink takoutSectionDelim Delimiter
90 HiLink takoutSectionTitle Exception
91 HiLink takoutHeaderDelim SpecialComment
92 HiLink takoutLabel Identifier
94 HiLink takoutError Error
100 let b:current_syntax = "takout"