1" Vim syntax file 2" Language: TAK2, TAK3, TAK2000 thermal modeling output file 3" Maintainer: Adrian Nagle, [email protected] 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 11" quit when a syntax file was already loaded 12if exists("b:current_syntax") 13 finish 14endif 15 16 17 18" Ignore case 19syn case match 20 21 22 23" Load TAK syntax file 24runtime! syntax/tak.vim 25unlet 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 66" Only when an item doesn't have highlighting yet 67 68hi def link takoutPos Statement 69hi def link takoutNeg PreProc 70hi def link takoutTitle Type 71hi def link takoutFile takIncludeFile 72hi def link takoutInteger takInteger 73 74hi def link takoutSectionDelim Delimiter 75hi def link takoutSectionTitle Exception 76hi def link takoutHeaderDelim SpecialComment 77hi def link takoutLabel Identifier 78 79hi def link takoutError Error 80 81 82 83let b:current_syntax = "takout" 84 85" vim: ts=8 sw=2 86