2014-07-10 21:05:51 -07:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: sinda85, sinda/fluint compare file
|
|
|
|
" Maintainer: Adrian Nagle, anagle@ball.com
|
|
|
|
" Last Change: 2003 May 11
|
|
|
|
" Filenames: *.cmp
|
|
|
|
" URL: http://www.naglenet.org/vim/syntax/sindacmp.vim
|
|
|
|
" MAIN URL: http://www.naglenet.org/vim/
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
" quit when a syntax file was already loaded
|
|
|
|
if exists("b:current_syntax")
|
2014-07-10 21:05:51 -07:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Ignore case
|
|
|
|
syn case ignore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"
|
|
|
|
" Begin syntax definitions for compare files.
|
|
|
|
"
|
|
|
|
|
|
|
|
" Define keywords for sinda compare (sincomp)
|
|
|
|
syn keyword sindacmpUnit celsius fahrenheit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Define matches for sinda compare (sincomp)
|
|
|
|
syn match sindacmpTitle "Steady State Temperature Comparison"
|
|
|
|
|
|
|
|
syn match sindacmpLabel "File [1-6] is"
|
|
|
|
|
|
|
|
syn match sindacmpHeader "^ *Node\( *File \d\)* *Node Description"
|
|
|
|
|
|
|
|
syn match sindacmpInteger "^ *-\=\<[0-9]*\>"
|
|
|
|
syn match sindacmpFloat "-\=\<[0-9]*\.[0-9]*"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Define the default highlighting
|
2017-04-28 12:06:44 -07:00
|
|
|
" Only when an item doesn't have highlighting yet
|
|
|
|
command -nargs=+ HiLink hi def link <args>
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
HiLink sindacmpTitle Type
|
|
|
|
HiLink sindacmpUnit PreProc
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
HiLink sindacmpLabel Statement
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
HiLink sindacmpHeader sindaHeader
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
HiLink sindacmpInteger Number
|
|
|
|
HiLink sindacmpFloat Special
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
delcommand HiLink
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
let b:current_syntax = "sindacmp"
|
|
|
|
|
|
|
|
" vim: ts=8 sw=2
|