takout.vim (2000B)
1 " 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 11 " quit when a syntax file was already loaded 12 if exists("b:current_syntax") 13 finish 14 endif 15 16 17 18 " Ignore case 19 syn case match 20 21 22 23 " Load TAK syntax file 24 runtime! syntax/tak.vim 25 unlet b:current_syntax 26 27 28 29 " 30 " 31 " Begin syntax definitions for tak output files. 32 " 33 34 " Define keywords for TAK output 35 syn case match 36 37 syn keyword takoutPos ON SI 38 syn keyword takoutNeg OFF ENG 39 40 41 42 " Define matches for TAK output 43 syn match takoutTitle "TAK III" 44 syn match takoutTitle "Release \d.\d\d" 45 syn match takoutTitle " K & K Associates *Thermal Analysis Kit III *Serial Number \d\d-\d\d\d" 46 47 syn match takoutFile ": \w*\.TAK"hs=s+2 48 49 syn match takoutInteger "T\=[0-9]*\>"ms=s+1 50 51 syn match takoutSectionDelim "[-<>]\{4,}" contains=takoutSectionTitle 52 syn match takoutSectionDelim ":\=\.\{4,}:\=" contains=takoutSectionTitle 53 syn match takoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1 54 55 syn match takoutHeaderDelim "=\{5,}" 56 syn match takoutHeaderDelim "|\{5,}" 57 syn match takoutHeaderDelim "+\{5,}" 58 59 syn match takoutLabel "Input File:" contains=takoutFile 60 syn match takoutLabel "Begin Solution: Routine" 61 62 syn match takoutError "<<< Error >>>" 63 64 65 " Define the default highlighting 66 " Only when an item doesn't have highlighting yet 67 68 hi def link takoutPos Statement 69 hi def link takoutNeg PreProc 70 hi def link takoutTitle Type 71 hi def link takoutFile takIncludeFile 72 hi def link takoutInteger takInteger 73 74 hi def link takoutSectionDelim Delimiter 75 hi def link takoutSectionTitle Exception 76 hi def link takoutHeaderDelim SpecialComment 77 hi def link takoutLabel Identifier 78 79 hi def link takoutError Error 80 81 82 83 let b:current_syntax = "takout" 84 85 " vim: ts=8 sw=2