blob: ed69ff0a21aa962710b996ed62f00904943c7452 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: TAK2, TAK3, TAK2000 thermal modeling output file
3" Maintainer: Adrian Nagle, anagle@ball.com
4" Last Change: 2003 May 11
5" Filenames: *.out
6" URL: http://www.naglenet.org/vim/syntax/takout.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 match
20
21
22
23" Load TAK syntax file
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020024runtime! syntax/tak.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +000025unlet b:current_syntax
26
27
28
29"
30"
31" Begin syntax definitions for tak output files.
32"
33
34" Define keywords for TAK output
35syn case match
36
37syn keyword takoutPos ON SI
38syn keyword takoutNeg OFF ENG
39
40
41
42" Define matches for TAK output
43syn match takoutTitle "TAK III"
44syn match takoutTitle "Release \d.\d\d"
45syn match takoutTitle " K & K Associates *Thermal Analysis Kit III *Serial Number \d\d-\d\d\d"
46
47syn match takoutFile ": \w*\.TAK"hs=s+2
48
49syn match takoutInteger "T\=[0-9]*\>"ms=s+1
50
51syn match takoutSectionDelim "[-<>]\{4,}" contains=takoutSectionTitle
52syn match takoutSectionDelim ":\=\.\{4,}:\=" contains=takoutSectionTitle
53syn match takoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
54
55syn match takoutHeaderDelim "=\{5,}"
56syn match takoutHeaderDelim "|\{5,}"
57syn match takoutHeaderDelim "+\{5,}"
58
59syn match takoutLabel "Input File:" contains=takoutFile
60syn match takoutLabel "Begin Solution: Routine"
61
62syn match takoutError "<<< Error >>>"
63
64
65" Define the default highlighting
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020066" Only when an item doesn't have highlighting yet
67command -nargs=+ HiLink hi def link <args>
Bram Moolenaar071d4272004-06-13 20:20:40 +000068
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020069HiLink takoutPos Statement
70HiLink takoutNeg PreProc
71HiLink takoutTitle Type
72HiLink takoutFile takIncludeFile
73HiLink takoutInteger takInteger
Bram Moolenaar071d4272004-06-13 20:20:40 +000074
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020075HiLink takoutSectionDelim Delimiter
76HiLink takoutSectionTitle Exception
77HiLink takoutHeaderDelim SpecialComment
78HiLink takoutLabel Identifier
Bram Moolenaar071d4272004-06-13 20:20:40 +000079
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020080HiLink takoutError Error
Bram Moolenaar071d4272004-06-13 20:20:40 +000081
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020082delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000083
84
85let b:current_syntax = "takout"
86
87" vim: ts=8 sw=2