blob: 87b483409a472a4f5fb193846fa110fdf18c5eaa [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: sinda85, sinda/fluint compare file
3" Maintainer: Adrian Nagle, anagle@ball.com
4" Last Change: 2003 May 11
5" Filenames: *.cmp
6" URL: http://www.naglenet.org/vim/syntax/sindacmp.vim
7" MAIN URL: http://www.naglenet.org/vim/
8
9
10
11" For version 5.x: Clear all syntax items
12" For version 6.x: Quit when a syntax file was already loaded
13if version < 600
14 syntax clear
15elseif exists("b:current_syntax")
16 finish
17endif
18
19
20
21" Ignore case
22syn case ignore
23
24
25
26"
27" Begin syntax definitions for compare files.
28"
29
30" Define keywords for sinda compare (sincomp)
31syn keyword sindacmpUnit celsius fahrenheit
32
33
34
35" Define matches for sinda compare (sincomp)
36syn match sindacmpTitle "Steady State Temperature Comparison"
37
38syn match sindacmpLabel "File [1-6] is"
39
40syn match sindacmpHeader "^ *Node\( *File \d\)* *Node Description"
41
42syn match sindacmpInteger "^ *-\=\<[0-9]*\>"
43syn match sindacmpFloat "-\=\<[0-9]*\.[0-9]*"
44
45
46
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
50if version >= 508 || !exists("did_sindacmp_syntax_inits")
51 if version < 508
52 let did_sindacmp_syntax_inits = 1
53 command -nargs=+ HiLink hi link <args>
54 else
55 command -nargs=+ HiLink hi def link <args>
56 endif
57
58 HiLink sindacmpTitle Type
59 HiLink sindacmpUnit PreProc
60
61 HiLink sindacmpLabel Statement
62
63 HiLink sindacmpHeader sindaHeader
64
65 HiLink sindacmpInteger Number
66 HiLink sindacmpFloat Special
67
68 delcommand HiLink
69endif
70
71
72let b:current_syntax = "sindacmp"
73
74" vim: ts=8 sw=2