2 " Language: Abaqus finite element input file (www.hks.com)
3 " Maintainer: Carl Osterwisch <osterwischc@asme.org>
4 " Last Change: 2002 Feb 24
5 " Remark: Huge improvement in folding performance--see filetype plugin
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
11 elseif exists("b:current_syntax")
15 " Abaqus comment lines
16 syn match abaqusComment "^\*\*.*$"
18 " Abaqus keyword lines
19 syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display
20 syn match abaqusKeyword "^\*\h[^,]*" contained display
21 syn match abaqusParameter ",[^,=]\+"lc=1 contained display
22 syn match abaqusValue "=\s*[^,]*"lc=1 contained display
25 syn match abaqusBadLine "^\s\+\*.*" display
27 " Define the default highlighting.
28 " For version 5.7 and earlier: only when not done already
29 " For version 5.8 and later: only when an item doesn't have highlighting yet
30 if version >= 508 || !exists("did_abaqus_syn_inits")
32 let did_abaqus_syn_inits = 1
33 command -nargs=+ HiLink hi link <args>
35 command -nargs=+ HiLink hi def link <args>
38 " The default methods for highlighting. Can be overridden later
39 HiLink abaqusComment Comment
40 HiLink abaqusKeyword Statement
41 HiLink abaqusParameter Identifier
42 HiLink abaqusValue Constant
43 HiLink abaqusBadLine Error
48 let b:current_syntax = "abaqus"