xref: /vim-8.2.3635/runtime/syntax/takcmp.vim (revision 89bcfda6)
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
52command -nargs=+ HiLink hi def link <args>
53
54HiLink takcmpTitle		   Type
55HiLink takcmpUnit		   PreProc
56
57HiLink takcmpLabel		   Statement
58
59HiLink takcmpHeader		   takHeader
60
61HiLink takcmpDate		   Identifier
62HiLink takcmpTime		   Identifier
63HiLink takcmpInteger		   Number
64HiLink takcmpFloat		   Special
65
66delcommand HiLink
67
68
69let b:current_syntax = "takcmp"
70
71" vim: ts=8 sw=2
72