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