7
|
1 " 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
|
|
13 if version < 600
|
|
14 syntax clear
|
|
15 elseif exists("b:current_syntax")
|
|
16 finish
|
|
17 endif
|
|
18
|
|
19
|
|
20
|
|
21 " Ignore case
|
|
22 syn case ignore
|
|
23
|
|
24
|
|
25
|
|
26 "
|
|
27 " Begin syntax definitions for compare files.
|
|
28 "
|
|
29
|
|
30 " Define keywords for sinda compare (sincomp)
|
|
31 syn keyword sindacmpUnit celsius fahrenheit
|
|
32
|
|
33
|
|
34
|
|
35 " Define matches for sinda compare (sincomp)
|
|
36 syn match sindacmpTitle "Steady State Temperature Comparison"
|
|
37
|
|
38 syn match sindacmpLabel "File [1-6] is"
|
|
39
|
|
40 syn match sindacmpHeader "^ *Node\( *File \d\)* *Node Description"
|
|
41
|
|
42 syn match sindacmpInteger "^ *-\=\<[0-9]*\>"
|
|
43 syn 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
|
|
50 if 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
|
|
69 endif
|
|
70
|
|
71
|
|
72 let b:current_syntax = "sindacmp"
|
|
73
|
|
74 " vim: ts=8 sw=2
|