2 " Language: Abaqus finite element input file (www.hks.com)
3 " Maintainer: Carl Osterwisch <osterwischc@asme.org>
4 " Last Change: 1 May 2001, Updated for Vim 6 compatibility, added folding
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
14 " Abaqus comment lines
15 syn match abaqusComment "^\*\*.*$"
17 " Abaqus keyword lines
18 syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display
19 syn match abaqusKeyword "^\*\h[^,]*" contained display
20 syn match abaqusParameter ",[^,=]\+"lc=1 contained display
21 syn match abaqusValue "=\s*[^,]*"lc=1 contained display
24 syn match abaqusBadLine "^\s\+\*.*" display
28 syn region foldData start="^\*\h" end="^\*\h"me=s-1 transparent fold
33 " Define the default highlighting.
34 " For version 5.7 and earlier: only when not done already
35 " For version 5.8 and later: only when an item doesn't have highlighting yet
36 if version >= 508 || !exists("did_abaqus_syn_inits")
38 let did_abaqus_syn_inits = 1
39 command -nargs=+ HiLink hi link <args>
41 command -nargs=+ HiLink hi def link <args>
44 " The default methods for highlighting. Can be overridden later
45 HiLink abaqusComment Comment
46 HiLink abaqusKeyword Statement
47 HiLink abaqusParameter Identifier
48 HiLink abaqusValue Constant
49 HiLink abaqusBadLine Error
54 let b:current_syntax = "abaqus"