Add support for :winpos
[MacVim.git] / runtime / syntax / takout.vim
blob774353942a59abd81266aeb129996d2f81e9083b
1 " 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/
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
21 " Ignore case
22 syn case match
26 " Load TAK syntax file
27 if version < 600
28   source <sfile>:p:h/tak.vim
29 else
30   runtime! syntax/tak.vim
31 endif
32 unlet b:current_syntax
38 " Begin syntax definitions for tak output files.
41 " Define keywords for TAK output
42 syn case match
44 syn keyword takoutPos       ON SI
45 syn keyword takoutNeg       OFF ENG
49 " Define matches for TAK output
50 syn match takoutTitle        "TAK III"
51 syn match takoutTitle        "Release \d.\d\d"
52 syn match takoutTitle        " K & K  Associates *Thermal Analysis Kit III *Serial Number \d\d-\d\d\d"
54 syn match takoutFile         ": \w*\.TAK"hs=s+2
56 syn match takoutInteger      "T\=[0-9]*\>"ms=s+1
58 syn match takoutSectionDelim "[-<>]\{4,}" contains=takoutSectionTitle
59 syn match takoutSectionDelim ":\=\.\{4,}:\=" contains=takoutSectionTitle
60 syn match takoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
62 syn match takoutHeaderDelim  "=\{5,}"
63 syn match takoutHeaderDelim  "|\{5,}"
64 syn match takoutHeaderDelim  "+\{5,}"
66 syn match takoutLabel        "Input File:" contains=takoutFile
67 syn match takoutLabel        "Begin Solution: Routine"
69 syn match takoutError        "<<< Error >>>"
72 " Define the default highlighting
73 " For version 5.7 and earlier: only when not done already
74 " For version 5.8 and later: only when an item doesn't have highlighting yet
75 if version >= 508 || !exists("did_takout_syntax_inits")
76   if version < 508
77     let did_takout_syntax_inits = 1
78     command -nargs=+ HiLink hi link <args>
79   else
80     command -nargs=+ HiLink hi def link <args>
81   endif
83   HiLink takoutPos                 Statement
84   HiLink takoutNeg                 PreProc
85   HiLink takoutTitle               Type
86   HiLink takoutFile                takIncludeFile
87   HiLink takoutInteger             takInteger
89   HiLink takoutSectionDelim         Delimiter
90   HiLink takoutSectionTitle        Exception
91   HiLink takoutHeaderDelim         SpecialComment
92   HiLink takoutLabel               Identifier
94   HiLink takoutError               Error
96   delcommand HiLink
97 endif
100 let b:current_syntax = "takout"
102 " vim: ts=8 sw=2