annotate runtime/syntax/gdmo.vim @ 4916:ba328b4a990e v7.3.1203

updated for version 7.3.1203 Problem: Matches from matchadd() might be highlighted incorrectly when they are at a fixed position and inserting lines. (John Szakmeister) Solution: Redraw all lines below a change if there are highlighted matches. (idea by Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Sat, 15 Jun 2013 23:00:30 +0200
parents fd09a9c8468e
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: GDMO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " (ISO-10165-4; Guidelines for the Definition of Managed Object)
2908
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Maintainer: Gyuman (Chester) Kim <violkim@gmail.com>
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
5 " URL: http://classicalprogrammer.wikidot.com/local--files/vim-syntax-file-for-gdmo/gdmo.vim
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
6 " Last change: 8th June, 2011
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " keyword definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match gdmoCategory "MANAGED\s\+OBJECT\s\+CLASS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword gdmoCategory NOTIFICATION ATTRIBUTE BEHAVIOUR PACKAGE ACTION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match gdmoCategory "NAME\s\+BINDING"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match gdmoRelationship "DERIVED\s\+FROM"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match gdmoRelationship "SUPERIOR\s\+OBJECT\s\+CLASS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match gdmoRelationship "SUBORDINATE\s\+OBJECT\s\+CLASS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match gdmoExtension "AND\s\+SUBCLASSES"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match gdmoDefinition "DEFINED\s\+AS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match gdmoDefinition "REGISTERED\s\+AS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match gdmoExtension "ORDER\s\+BY"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match gdmoReference "WITH\s\+ATTRIBUTE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match gdmoReference "WITH\s\+INFORMATION\s\+SYNTAX"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match gdmoReference "WITH\s\+REPLY\s\+SYNTAX"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match gdmoReference "WITH\s\+ATTRIBUTE\s\+SYNTAX"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match gdmoExtension "AND\s\+ATTRIBUTE\s\+IDS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match gdmoExtension "MATCHES\s\+FOR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match gdmoReference "CHARACTERIZED\s\+BY"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match gdmoReference "CONDITIONAL\s\+PACKAGES"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match gdmoExtension "PRESENT\s\+IF"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match gdmoExtension "DEFAULT\s\+VALUE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match gdmoExtension "PERMITTED\s\+VALUES"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match gdmoExtension "REQUIRED\s\+VALUES"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match gdmoExtension "NAMED\s\+BY"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword gdmoReference ATTRIBUTES NOTIFICATIONS ACTIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword gdmoExtension DELETE CREATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword gdmoExtension EQUALITY SUBSTRINGS ORDERING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match gdmoExtension "REPLACE-WITH-DEFAULT"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match gdmoExtension "GET"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match gdmoExtension "GET-REPLACE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match gdmoExtension "ADD-REMOVE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match gdmoExtension "WITH-REFERENCE-OBJECT"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match gdmoExtension "WITH-AUTOMATIC-INSTANCE-NAMING"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match gdmoExtension "ONLY-IF-NO-CONTAINED-OBJECTS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Strings and constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match gdmoSpecial contained "\\\d\d\d\|\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn region gdmoString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=gdmoSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match gdmoCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match gdmoSpecialCharacter "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match gdmoNumber "0[xX][0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match gdmoLineComment "--.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match gdmoLineComment "--.*--"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match gdmoDefinition "^\s*[a-zA-Z][-a-zA-Z0-9_.\[\] \t{}]* *::="me=e-3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match gdmoBraces "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn sync ccomment gdmoComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " 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
69 if version >= 508 || !exists("did_gdmo_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 let did_gdmo_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink gdmoCategory Structure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink gdmoRelationship Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink gdmoDefinition Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink gdmoReference Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink gdmoExtension Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink gdmoBraces Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink gdmoSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink gdmoString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink gdmoCharacter Character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink gdmoSpecialCharacter gdmoSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink gdmoComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink gdmoLineComment gdmoComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink gdmoType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 let b:current_syntax = "gdmo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " vim: ts=8