blob: ddf0255845350466f7b17bbdd8a758f8a5badc2e [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
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
6
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02007" quit when a syntax file was already loaded
8if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +00009 finish
10endif
11
12" Abaqus comment lines
13syn match abaqusComment "^\*\*.*$"
14
15" Abaqus keyword lines
16syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display
17syn match abaqusKeyword "^\*\h[^,]*" contained display
18syn match abaqusParameter ",[^,=]\+"lc=1 contained display
19syn match abaqusValue "=\s*[^,]*"lc=1 contained display
20
21" Illegal syntax
22syn match abaqusBadLine "^\s\+\*.*" display
23
24" Define the default highlighting.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020025" Only when an item doesn't have highlighting yet
26command -nargs=+ HiLink hi def link <args>
Bram Moolenaar071d4272004-06-13 20:20:40 +000027
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020028" The default methods for highlighting. Can be overridden later
29HiLink abaqusComment Comment
30HiLink abaqusKeyword Statement
31HiLink abaqusParameter Identifier
32HiLink abaqusValue Constant
33HiLink abaqusBadLine Error
Bram Moolenaar071d4272004-06-13 20:20:40 +000034
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020035delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000036
37let b:current_syntax = "abaqus"