2 " Language: sinda85, sinda/fluint compare file
3 " Maintainer: Adrian Nagle, anagle@ball.com
4 " Last Change: 2001-05-02 10:18:41 Mountain Daylight Time
6 " URL: http://www.naglenet.org/vim/syntax/sindacmp.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")
27 " Begin syntax definitions for compare files.
30 " Define keywords for sinda compare (sincomp)
31 syn keyword sindacmpUnit celsius fahrenheit
35 " Define matches for sinda compare (sincomp)
36 syn match sindacmpTitle "Steady State Temperature Comparison"
38 syn match sindacmpLabel "File [1-6] is"
40 syn match sindacmpHeader "^ *Node\( *File \d\)* *Node Description"
42 syn match sindacmpInteger "^ *-\=\<[0-9]*\>"
43 syn match sindacmpFloat "-\=\<[0-9]*\.[0-9]*"
47 " Define the default highlighting
48 " For version 5.7 and earlier: only when not done already
49 " For version 5.8 and later: only when an item doesn't have highlighting yet
50 if version >= 508 || !exists("did_sindacmp_syntax_inits")
52 let did_sindacmp_syntax_inits = 1
53 command -nargs=+ HiLink hi link <args>
55 command -nargs=+ HiLink hi def link <args>
58 HiLink sindacmpTitle Type
59 HiLink sindacmpUnit PreProc
61 HiLink sindacmpLabel Statement
63 HiLink sindacmpHeader sindaHeader
65 HiLink sindacmpInteger Number
66 HiLink sindacmpFloat Special
72 let b:current_syntax = "sindacmp"