Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " 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 Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 7 | " quit when a syntax file was already loaded |
| 8 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9 | finish |
| 10 | endif |
| 11 | |
| 12 | " Abaqus comment lines |
| 13 | syn match abaqusComment "^\*\*.*$" |
| 14 | |
| 15 | " Abaqus keyword lines |
| 16 | syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display |
| 17 | syn match abaqusKeyword "^\*\h[^,]*" contained display |
| 18 | syn match abaqusParameter ",[^,=]\+"lc=1 contained display |
| 19 | syn match abaqusValue "=\s*[^,]*"lc=1 contained display |
| 20 | |
| 21 | " Illegal syntax |
| 22 | syn match abaqusBadLine "^\s\+\*.*" display |
| 23 | |
| 24 | " Define the default highlighting. |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 25 | " Only when an item doesn't have highlighting yet |
| 26 | command -nargs=+ HiLink hi def link <args> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 27 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 28 | " The default methods for highlighting. Can be overridden later |
| 29 | HiLink abaqusComment Comment |
| 30 | HiLink abaqusKeyword Statement |
| 31 | HiLink abaqusParameter Identifier |
| 32 | HiLink abaqusValue Constant |
| 33 | HiLink abaqusBadLine Error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 34 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 35 | delcommand HiLink |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 36 | |
| 37 | let b:current_syntax = "abaqus" |