annotate runtime/syntax/lace.vim @ 34079:231c0e600dd6

Added tag v9.1.0008 for changeset 56a4023b605df0f0b9b80006a492a4764ed075b7
author Christian Brabandt <cb@256bit.org>
date Thu, 04 Jan 2024 22:30:03 +0100
parents 46763b01cd9a
children
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: lace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Jocelyn Fiat <utilities@eiffel.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2001 May 09
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Copyright Interactive Software Engineering, 1998
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " You are free to use this file as you please, but
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " if you make a change or improvement you must send
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " it to the maintainer at <utilities@eiffel.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
12 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
13 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " LACE is case insensitive, but the style guide lines are not.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if !exists("lace_case_insensitive")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " A bunch of useful LACE keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword laceTopStruct system root default option visible cluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword laceTopStruct external generate end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword laceOptionClause collect assertion debug optimize trace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword laceOptionClause profile inline precompiled multithreaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword laceOptionClause exception_trace dead_code_removal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword laceOptionClause array_optimization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword laceOptionClause inlining_size inlining
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword laceOptionClause console_application dynamic_runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword laceOptionClause line_generation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword laceOptionMark yes no all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword laceOptionMark require ensure invariant loop check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword laceClusterProp use include exclude
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword laceAdaptClassName adapt ignore rename as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword laceAdaptClassName creation export visible
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword laceExternal include_path object makefile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match laceOperator "\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match laceBrackets "[[\]]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match laceExport "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword laceBool true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword laceBool True False
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn region laceString start=+"+ skip=+%"+ end=+"+ contains=laceEscape,laceStringError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match laceEscape contained "%[^/]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match laceEscape contained "%/\d\+/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match laceEscape contained "^[ \t]*%"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match laceEscape contained "%[ \t]*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match laceStringError contained "%/[^0-9]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match laceStringError contained "%/\d\+[^0-9/]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match laceStringError "'\(%[^/]\|%/\d\+/\|[^'%]\)\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match laceCharacter "'\(%[^/]\|%/\d\+/\|[^'%]\)'" contains=laceEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match laceNumber "-\=\<\d\+\(_\d\+\)*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match laceNumber "\<[01]\+[bB]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match laceNumber "-\=\<\d\+\(_\d\+\)*\.\(\d\+\(_\d\+\)*\)\=\([eE][-+]\=\d\+\(_\d\+\)*\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match laceNumber "-\=\.\d\+\(_\d\+\)*\([eE][-+]\=\d\+\(_\d\+\)*\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match laceComment "--.*" contains=laceTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " Case sensitive stuff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword laceTodo TODO XXX FIXME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match laceClassName "\<[A-Z][A-Z0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn match laceCluster "[a-zA-Z][a-zA-Z0-9_]*\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match laceCluster "[a-zA-Z][a-zA-Z0-9_]*\s*(\s*[a-zA-Z][a-zA-Z0-9_]*\s*)\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " Catch mismatched parentheses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match laceParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match laceBracketError "\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn region laceGeneric transparent matchgroup=laceBrackets start="\[" end="\]" contains=ALLBUT,laceBracketError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn region laceParen transparent start="(" end=")" contains=ALLBUT,laceParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 " Should suffice for even very long strings and expressions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn sync lines=40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
85 " Only when an item doesn't have highlighting yet
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
86
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link laceTopStruct PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
89 hi def link laceOptionClause Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
90 hi def link laceOptionMark Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
91 hi def link laceClusterProp Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
92 hi def link laceAdaptClassName Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
93 hi def link laceExternal Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
94 hi def link laceCluster ModeMsg
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
96 hi def link laceEscape Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
98 hi def link laceBool Boolean
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
99 hi def link laceString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
100 hi def link laceCharacter Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
101 hi def link laceClassName Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
102 hi def link laceNumber Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
104 hi def link laceOperator Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
105 hi def link laceArray Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
106 hi def link laceExport Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
107 hi def link laceCreation Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
108 hi def link laceBrackets Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
109 hi def link laceConstraint Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
111 hi def link laceComment Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
113 hi def link laceError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
114 hi def link laceStringError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
115 hi def link laceParenError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
116 hi def link laceBracketError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
117 hi def link laceTodo Todo
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
118
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 let b:current_syntax = "lace"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 " vim: ts=4