1" Vim syntax file 2" Language: Abaqus finite element input file (www.hks.com) 3" Maintainer: Carl Osterwisch <[email protected]> 4" Last Change: 2002 Feb 24 5" Remark: Huge improvement in folding performance--see filetype plugin 6 7" For version 5.x: Clear all syntax items 8" For version 6.x: Quit when a syntax file was already loaded 9if version < 600 10 syntax clear 11elseif exists("b:current_syntax") 12 finish 13endif 14 15" Abaqus comment lines 16syn match abaqusComment "^\*\*.*$" 17 18" Abaqus keyword lines 19syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display 20syn match abaqusKeyword "^\*\h[^,]*" contained display 21syn match abaqusParameter ",[^,=]\+"lc=1 contained display 22syn match abaqusValue "=\s*[^,]*"lc=1 contained display 23 24" Illegal syntax 25syn match abaqusBadLine "^\s\+\*.*" display 26 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 30if version >= 508 || !exists("did_abaqus_syn_inits") 31 if version < 508 32 let did_abaqus_syn_inits = 1 33 command -nargs=+ HiLink hi link <args> 34 else 35 command -nargs=+ HiLink hi def link <args> 36 endif 37 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 44 45 delcommand HiLink 46endif 47 48let b:current_syntax = "abaqus" 49