blob: 88373eb2850d7e802baeda7cbb6096096f57d14d [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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020011" quit when a syntax file was already loaded
12if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000013 finish
14endif
15
16
17
18" Ignore case
19syn case ignore
20
21
22
23"
24" Begin syntax definitions for compare files.
25"
26
27" Define keywords for sinda compare (sincomp)
28syn keyword sindacmpUnit celsius fahrenheit
29
30
31
32" Define matches for sinda compare (sincomp)
33syn match sindacmpTitle "Steady State Temperature Comparison"
34
35syn match sindacmpLabel "File [1-6] is"
36
37syn match sindacmpHeader "^ *Node\( *File \d\)* *Node Description"
38
39syn match sindacmpInteger "^ *-\=\<[0-9]*\>"
40syn match sindacmpFloat "-\=\<[0-9]*\.[0-9]*"
41
42
43
44" Define the default highlighting
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020045" Only when an item doesn't have highlighting yet
Bram Moolenaar071d4272004-06-13 20:20:40 +000046
Bram Moolenaarf37506f2016-08-31 22:22:10 +020047hi def link sindacmpTitle Type
48hi def link sindacmpUnit PreProc
Bram Moolenaar071d4272004-06-13 20:20:40 +000049
Bram Moolenaarf37506f2016-08-31 22:22:10 +020050hi def link sindacmpLabel Statement
Bram Moolenaar071d4272004-06-13 20:20:40 +000051
Bram Moolenaarf37506f2016-08-31 22:22:10 +020052hi def link sindacmpHeader sindaHeader
Bram Moolenaar071d4272004-06-13 20:20:40 +000053
Bram Moolenaarf37506f2016-08-31 22:22:10 +020054hi def link sindacmpInteger Number
55hi def link sindacmpFloat Special
Bram Moolenaar071d4272004-06-13 20:20:40 +000056
Bram Moolenaar071d4272004-06-13 20:20:40 +000057
58
59let b:current_syntax = "sindacmp"
60
61" vim: ts=8 sw=2