2014-07-10 21:05:51 -07:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: Abaqus finite element input file (www.hks.com)
|
2022-08-09 01:43:28 -07:00
|
|
|
" Maintainer: Carl Osterwisch <costerwi@gmail.com>
|
2014-07-10 21:05:51 -07:00
|
|
|
" Last Change: 2002 Feb 24
|
|
|
|
" Remark: Huge improvement in folding performance--see filetype plugin
|
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
" quit when a syntax file was already loaded
|
|
|
|
if exists("b:current_syntax")
|
2014-07-10 21:05:51 -07:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Abaqus comment lines
|
|
|
|
syn match abaqusComment "^\*\*.*$"
|
|
|
|
|
|
|
|
" Abaqus keyword lines
|
|
|
|
syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display
|
|
|
|
syn match abaqusKeyword "^\*\h[^,]*" contained display
|
|
|
|
syn match abaqusParameter ",[^,=]\+"lc=1 contained display
|
|
|
|
syn match abaqusValue "=\s*[^,]*"lc=1 contained display
|
|
|
|
|
|
|
|
" Illegal syntax
|
|
|
|
syn match abaqusBadLine "^\s\+\*.*" display
|
|
|
|
|
|
|
|
" Define the default highlighting.
|
2017-04-28 12:06:44 -07:00
|
|
|
" Only when an item doesn't have highlighting yet
|
|
|
|
|
|
|
|
" The default methods for highlighting. Can be overridden later
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link abaqusComment Comment
|
|
|
|
hi def link abaqusKeyword Statement
|
|
|
|
hi def link abaqusParameter Identifier
|
2022-08-09 01:43:28 -07:00
|
|
|
hi def link abaqusValue Constant
|
|
|
|
hi def link abaqusBadLine Error
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
let b:current_syntax = "abaqus"
|