annotate runtime/syntax/abaqus.vim @ 8693:118a0378ccd3

Added tag v7.4.1635 for changeset 683b3702970adff4c13d818c78feaab34c8cd2a8
author Christian Brabandt <cb@256bit.org>
date Mon, 21 Mar 2016 23:30:04 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Abaqus finite element input file (www.hks.com)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Carl Osterwisch <osterwischc@asme.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2002 Feb 24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Remark: Huge improvement in folding performance--see filetype plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Abaqus comment lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match abaqusComment "^\*\*.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Abaqus keyword lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match abaqusKeywordLine "^\*\h.*" contains=abaqusKeyword,abaqusParameter,abaqusValue display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match abaqusKeyword "^\*\h[^,]*" contained display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match abaqusParameter ",[^,=]\+"lc=1 contained display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match abaqusValue "=\s*[^,]*"lc=1 contained display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Illegal syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match abaqusBadLine "^\s\+\*.*" display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 if version >= 508 || !exists("did_abaqus_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 let did_abaqus_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " The default methods for highlighting. Can be overridden later
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 HiLink abaqusComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 HiLink abaqusKeyword Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 HiLink abaqusParameter Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 HiLink abaqusValue Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HiLink abaqusBadLine Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 let b:current_syntax = "abaqus"