1" Vim syntax file 2" Language: TAK2, TAK3, TAK2000 thermal modeling compare file 3" Maintainer: Adrian Nagle, [email protected] 4" Last Change: 2003 May 11 5" Filenames: *.cmp 6" URL: http://www.naglenet.org/vim/syntax/takcmp.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 ignore 20 21 22 23" 24" 25" Begin syntax definitions for compare files. 26" 27" Define keywords for TAK compare 28 syn keyword takcmpUnit celsius fahrenheit 29 30 31 32" Define matches for TAK compare 33 syn match takcmpTitle "Steady State Temperature Comparison" 34 35 syn match takcmpLabel "Run Date:" 36 syn match takcmpLabel "Run Time:" 37 syn match takcmpLabel "Temp. File \d Units:" 38 syn match takcmpLabel "Filename:" 39 syn match takcmpLabel "Output Units:" 40 41 syn match takcmpHeader "^ *Node\( *File \d\)* *Node Description" 42 43 syn match takcmpDate "\d\d\/\d\d\/\d\d" 44 syn match takcmpTime "\d\d:\d\d:\d\d" 45 syn match takcmpInteger "^ *-\=\<[0-9]*\>" 46 syn match takcmpFloat "-\=\<[0-9]*\.[0-9]*" 47 48 49 50" Define the default highlighting 51" Only when an item doesn't have highlighting yet 52 53hi def link takcmpTitle Type 54hi def link takcmpUnit PreProc 55 56hi def link takcmpLabel Statement 57 58hi def link takcmpHeader takHeader 59 60hi def link takcmpDate Identifier 61hi def link takcmpTime Identifier 62hi def link takcmpInteger Number 63hi def link takcmpFloat Special 64 65 66 67let b:current_syntax = "takcmp" 68 69" vim: ts=8 sw=2 70