2 " Language: TAK2, TAK3, TAK2000 thermal modeling compare file
3 " Maintainer: Adrian Nagle, anagle@ball.com
4 " Last Change: 2003 May 11
6 " URL: http://www.naglenet.org/vim/syntax/takcmp.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")
28 " Begin syntax definitions for compare files.
30 " Define keywords for TAK compare
31 syn keyword takcmpUnit celsius fahrenheit
35 " Define matches for TAK compare
36 syn match takcmpTitle "Steady State Temperature Comparison"
38 syn match takcmpLabel "Run Date:"
39 syn match takcmpLabel "Run Time:"
40 syn match takcmpLabel "Temp. File \d Units:"
41 syn match takcmpLabel "Filename:"
42 syn match takcmpLabel "Output Units:"
44 syn match takcmpHeader "^ *Node\( *File \d\)* *Node Description"
46 syn match takcmpDate "\d\d\/\d\d\/\d\d"
47 syn match takcmpTime "\d\d:\d\d:\d\d"
48 syn match takcmpInteger "^ *-\=\<[0-9]*\>"
49 syn match takcmpFloat "-\=\<[0-9]*\.[0-9]*"
53 " Define the default highlighting
54 " For version 5.7 and earlier: only when not done already
55 " For version 5.8 and later: only when an item doesn't have highlighting yet
56 if version >= 508 || !exists("did_takcmp_syntax_inits")
58 let did_takcmp_syntax_inits = 1
59 command -nargs=+ HiLink hi link <args>
61 command -nargs=+ HiLink hi def link <args>
64 HiLink takcmpTitle Type
65 HiLink takcmpUnit PreProc
67 HiLink takcmpLabel Statement
69 HiLink takcmpHeader takHeader
71 HiLink takcmpDate Identifier
72 HiLink takcmpTime Identifier
73 HiLink takcmpInteger Number
74 HiLink takcmpFloat Special
80 let b:current_syntax = "takcmp"