tm-grammars 1.6.9 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +909 -96
- package/README.md +12 -5
- package/grammars/common-lisp.json +565 -0
- package/grammars/desktop.json +106 -0
- package/grammars/fennel.json +233 -0
- package/grammars/hy.json +88 -0
- package/grammars/log.json +127 -0
- package/grammars/mermaid.json +243 -5
- package/grammars/move.json +62 -43
- package/grammars/nushell.json +1 -1
- package/grammars/po.json +230 -0
- package/grammars/racket.json +1661 -0
- package/grammars/systemd.json +460 -0
- package/index.d.ts +10 -1
- package/index.js +134 -18
- package/package.json +1 -1
- package/grammars/lisp.json +0 -121
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Common Lisp",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"lisp",
|
|
5
|
+
"lsp",
|
|
6
|
+
"l",
|
|
7
|
+
"cl",
|
|
8
|
+
"asd",
|
|
9
|
+
"asdf"
|
|
10
|
+
],
|
|
11
|
+
"foldingStartMarker": "\\(",
|
|
12
|
+
"foldingStopMarker": "\\)",
|
|
13
|
+
"name": "common-lisp",
|
|
14
|
+
"patterns": [
|
|
15
|
+
{
|
|
16
|
+
"include": "#comment"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"include": "#block-comment"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"include": "#string"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"include": "#escape"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"include": "#constant"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"include": "#lambda-list"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"include": "#function"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"include": "#style-guide"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"include": "#def-name"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"include": "#macro"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"include": "#symbol"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"include": "#special-operator"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"include": "#declaration"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"include": "#type"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"include": "#class"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"include": "#condition-type"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"include": "#package"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"include": "#variable"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"include": "#punctuation"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"repository": {
|
|
74
|
+
"block-comment": {
|
|
75
|
+
"begin": "\\#\\|",
|
|
76
|
+
"contentName": "comment.block.commonlisp",
|
|
77
|
+
"end": "\\|\\#",
|
|
78
|
+
"name": "comment",
|
|
79
|
+
"patterns": [
|
|
80
|
+
{
|
|
81
|
+
"include": "#block-comment",
|
|
82
|
+
"name": "comment"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"class": {
|
|
87
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:two-way-stream|synonym-stream|symbol|structure-object|structure-class|string-stream|stream|standard-object|standard-method|\nstandard-generic-function|standard-class|sequence|restart|real|readtable|ratio|random-state|package|number|method|integer|hash-table|\ngeneric-function|file-stream|echo-stream|concatenated-stream|class|built-in-class|broadcast-stream|bit-vector|array)\n(?=(\\s|\\(|\\)))",
|
|
88
|
+
"name": "support.class.commonlisp"
|
|
89
|
+
},
|
|
90
|
+
"comment": {
|
|
91
|
+
"begin": "(^[ \\t]+)?(?=;)",
|
|
92
|
+
"beginCaptures": {
|
|
93
|
+
"1": {
|
|
94
|
+
"name": "punctuation.whitespace.comment.leading.commonlisp"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"end": "(?!\\G)",
|
|
98
|
+
"patterns": [
|
|
99
|
+
{
|
|
100
|
+
"begin": ";",
|
|
101
|
+
"beginCaptures": {
|
|
102
|
+
"0": {
|
|
103
|
+
"name": "punctuation.definition.comment.commonlisp"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"end": "\\n",
|
|
107
|
+
"name": "comment.line.semicolon.commonlisp"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"condition-type": {
|
|
112
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:warning|undefined-function|unbound-variable|unbound-slot|type-error|style-warning|stream-error|storage-condition|simple-warning|\nsimple-type-error|simple-error|simple-condition|serious-condition|reader-error|program-error|print-not-readable|parse-error|package-error|\nfloating-point-underflow|floating-point-overflow|floating-point-invalid-operation|floating-point-inexact|file-error|error|end-of-file|\ndivision-by-zero|control-error|condition|cell-error|arithmetic-error)\n(?=(\\s|\\(|\\)))",
|
|
113
|
+
"name": "support.type.exception.commonlisp"
|
|
114
|
+
},
|
|
115
|
+
"constant": {
|
|
116
|
+
"patterns": [
|
|
117
|
+
{
|
|
118
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:t|single-float-negative-epsilon|single-float-epsilon|short-float-negative-epsilon|short-float-epsilon|pi|\nnil|multiple-values-limit|most-positive-single-float|most-positive-short-float|most-positive-long-float|\nmost-positive-fixnum|most-positive-double-float|most-negative-single-float|most-negative-short-float|\nmost-negative-long-float|most-negative-fixnum|most-negative-double-float|long-float-negative-epsilon|\nlong-float-epsilon|least-positive-single-float|least-positive-short-float|least-positive-normalized-single-float|\nleast-positive-normalized-short-float|least-positive-normalized-long-float|least-positive-normalized-double-float|\nleast-positive-long-float|least-positive-double-float|least-negative-single-float|least-negative-short-float|\nleast-negative-normalized-single-float|least-negative-normalized-short-float|least-negative-normalized-long-float|\nleast-negative-normalized-double-float|least-negative-long-float|least-negative-double-float|lambda-parameters-limit|\nlambda-list-keywords|internal-time-units-per-second|double-float-negative-epsilon|double-float-epsilon|char-code-limit|\ncall-arguments-limit|boole-xor|boole-set|boole-orc2|boole-orc1|boole-nor|boole-nand|boole-ior|boole-eqv|boole-clr|\nboole-c2|boole-c1|boole-andc2|boole-andc1|boole-and|boole-2|boole-1|array-total-size-limit|array-rank-limit|array-dimension-limit)\n(?=(\\s|\\(|\\)))",
|
|
119
|
+
"name": "constant.language.commonlisp"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"match": "(?x)\n(?<=^|\\s|\\()\n([+-]?[0-9]+(?:\\/[0-9]+)*|\n[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?|\n(\\#b|\\#B)[01\\/+-]+|(\\#o|\\#O)[0-7\\/+-]+|(\\#x|\\#X)[0-9a-fA-F\\/+-]+|(\\#[0-9]+[rR]?)[0-9a-zA-Z\\/+-]+)\n(?=(\\s|\\)))",
|
|
123
|
+
"name": "constant.numeric.commonlisp"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"match": "(?xi)\n(?<=\\s)\n(\\.)\n(?=\\s)",
|
|
127
|
+
"name": "variable.other.constant.dot.commonlisp"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"match": "(?x)\n(?<=^|\\s|\\()\n([+-]?[0-9]*\\.[0-9]*((e|s|f|d|l|E|S|F|D|L)[+-]?[0-9]+)?|\n[+-]?[0-9]+(\\.[0-9]*)?(e|s|f|d|l|E|S|F|D|L)[+-]?[0-9]+)\n(?=(\\s|\\)))",
|
|
131
|
+
"name": "constant.numeric.commonlisp"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"declaration": {
|
|
136
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:type|speed|special|space|safety|optimize|notinline|inline|ignore|ignorable|ftype|dynamic-extent|declaration|debug|compilation-speed)\n(?=(\\s|\\(|\\)))",
|
|
137
|
+
"name": "storage.type.function.declaration.commonlisp"
|
|
138
|
+
},
|
|
139
|
+
"def-name": {
|
|
140
|
+
"patterns": [
|
|
141
|
+
{
|
|
142
|
+
"captures": {
|
|
143
|
+
"1": {
|
|
144
|
+
"name": "storage.type.function.defname.commonlisp"
|
|
145
|
+
},
|
|
146
|
+
"3": {
|
|
147
|
+
"name": "storage.type.function.defname.commonlisp"
|
|
148
|
+
},
|
|
149
|
+
"4": {
|
|
150
|
+
"name": "variable.other.constant.defname.commonlisp"
|
|
151
|
+
},
|
|
152
|
+
"6": {
|
|
153
|
+
"patterns": [
|
|
154
|
+
{
|
|
155
|
+
"include": "#package"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"match": "\\S+?",
|
|
159
|
+
"name": "entity.name.function.commonlisp"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"7": {
|
|
164
|
+
"name": "variable.other.constant.defname.commonlisp"
|
|
165
|
+
},
|
|
166
|
+
"9": {
|
|
167
|
+
"patterns": [
|
|
168
|
+
{
|
|
169
|
+
"include": "#package"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"match": "\\S+?",
|
|
173
|
+
"name": "entity.name.function.commonlisp"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(defun|defsetf|defmethod|defmacro|define-symbol-macro|define-setf-expander|\ndefine-modify-macro|define-method-combination|define-compiler-macro|defgeneric)\n\\s+\n( \\(\\s*\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+)\n\\s*\n((,@|,\\.|,)?)\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n|\n((,@|,\\.|,)?)\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n)\n(?=(\\s|\\(|\\)))"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"captures": {
|
|
182
|
+
"1": {
|
|
183
|
+
"name": "storage.type.function.defname.commonlisp"
|
|
184
|
+
},
|
|
185
|
+
"2": {
|
|
186
|
+
"name": "entity.name.type.commonlisp"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(deftype|defpackage|define-condition|defclass)\n\\s+\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n(?=(\\s|\\(|\\)))"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"captures": {
|
|
193
|
+
"1": {
|
|
194
|
+
"name": "storage.type.function.defname.commonlisp"
|
|
195
|
+
},
|
|
196
|
+
"2": {
|
|
197
|
+
"patterns": [
|
|
198
|
+
{
|
|
199
|
+
"include": "#package"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"match": "\\S+?",
|
|
203
|
+
"name": "variable.other.constant.defname.commonlisp"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(defconstant)\n\\s+\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n(?=(\\s|\\(|\\)))"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"captures": {
|
|
212
|
+
"1": {
|
|
213
|
+
"name": "storage.type.function.defname.commonlisp"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(defvar|defparameter)\n\\s+\n(?=(\\s|\\(|\\)))"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"captures": {
|
|
220
|
+
"1": {
|
|
221
|
+
"name": "storage.type.function.defname.commonlisp"
|
|
222
|
+
},
|
|
223
|
+
"2": {
|
|
224
|
+
"name": "entity.name.type.commonlisp"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(defstruct)\n\\s+\\(?\\s*\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n(?=(\\s|\\(|\\)))"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"captures": {
|
|
231
|
+
"1": {
|
|
232
|
+
"name": "keyword.control.commonlisp"
|
|
233
|
+
},
|
|
234
|
+
"2": {
|
|
235
|
+
"patterns": [
|
|
236
|
+
{
|
|
237
|
+
"include": "#package"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"match": "\\S+?",
|
|
241
|
+
"name": "entity.name.function.commonlisp"
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(macrolet|labels|flet)\n\\s+\\(\\s*\\(\\s*\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n(?=(\\s|\\(|\\)))"
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"escape": {
|
|
251
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:\\#\\\\\\S+?)\n(?=(\\s|\\(|\\)))",
|
|
252
|
+
"name": "constant.character.escape.commonlisp"
|
|
253
|
+
},
|
|
254
|
+
"function": {
|
|
255
|
+
"patterns": [
|
|
256
|
+
{
|
|
257
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|\\#')\n(?:values|third|tenth|symbol-value|symbol-plist|symbol-function|svref|subseq|sixth|seventh|second|schar|sbit|row-major-aref|\nrest|readtable-case|nth|ninth|mask-field|macro-function|logical-pathname-translations|ldb|gethash|getf|get|fourth|first|\nfind-class|fill-pointer|fifth|fdefinition|elt|eighth|compiler-macro-function|char|cdr|cddr|cdddr|cddddr|cdddar|cddar|cddadr|\ncddaar|cdar|cdadr|cdaddr|cdadar|cdaar|cdaadr|cdaaar|car|cadr|caddr|cadddr|caddar|cadar|cadadr|cadaar|caar|caadr|caaddr|caadar|\ncaaar|caaadr|caaaar|bit|aref)\n(?=(\\s|\\(|\\)))",
|
|
258
|
+
"name": "support.function.accessor.commonlisp"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|\\#')\n(?:yes-or-no-p|y-or-n-p|write-sequence|write-char|write-byte|warn|vector-pop|use-value|use-package|unuse-package|union|unintern|\nunexport|terpri|tailp|substitute-if-not|substitute-if|substitute|subst-if-not|subst-if|subst|sublis|string-upcase|string-downcase|\nstring-capitalize|store-value|sleep|signal|shadowing-import|shadow|set-syntax-from-char|set-macro-character|set-exclusive-or|\nset-dispatch-macro-character|set-difference|set|rplacd|rplaca|room|reverse|revappend|require|replace|remprop|remove-if-not|remove-if|\nremove-duplicates|remove|remhash|read-sequence|read-byte|random|provide|pprint-tabular|pprint-newline|pprint-linear|pprint-fill|\nnunion|nsubstitute-if-not|nsubstitute-if|nsubstitute|nsubst-if-not|nsubst-if|nsubst|nsublis|nstring-upcase|nstring-downcase|nstring-capitalize|\nnset-exclusive-or|nset-difference|nreverse|nreconc|nintersection|nconc|muffle-warning|method-combination-error|maphash|makunbound|ldiff|\ninvoke-restart-interactively|invoke-restart|invoke-debugger|invalid-method-error|intersection|inspect|import|get-output-stream-string|\nget-macro-character|get-dispatch-macro-character|gentemp|gensym|fresh-line|fill|file-position|export|describe|delete-if-not|delete-if|\ndelete-duplicates|delete|continue|clrhash|close|clear-input|break|abort)\n(?=(\\s|\\(|\\)))",
|
|
262
|
+
"name": "support.function.f.sideeffects.commonlisp"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|\\#')\n(?:zerop|write-to-string|write-string|write-line|write|wild-pathname-p|vectorp|vector-push-extend|vector-push|vector|values-list|\nuser-homedir-pathname|upper-case-p|upgraded-complex-part-type|upgraded-array-element-type|unread-char|unbound-slot-instance|typep|type-of|\ntype-error-expected-type|type-error-datum|two-way-stream-output-stream|two-way-stream-input-stream|truncate|truename|tree-equal|translate-pathname|\ntranslate-logical-pathname|tanh|tan|synonym-stream-symbol|symbolp|symbol-package|symbol-name|sxhash|subtypep|subsetp|stringp|string>=|string>|\nstring=|string<=|string<|string\\/=|string-trim|string-right-trim|string-not-lessp|string-not-greaterp|string-not-equal|string-lessp|\nstring-left-trim|string-greaterp|string-equal|string|streamp|stream-external-format|stream-error-stream|stream-element-type|standard-char-p|\nstable-sort|sqrt|special-operator-p|sort|some|software-version|software-type|slot-value|slot-makunbound|slot-exists-p|slot-boundp|sinh|sin|\nsimple-vector-p|simple-string-p|simple-condition-format-control|simple-condition-format-arguments|simple-bit-vector-p|signum|short-site-name|\nset-pprint-dispatch|search|scale-float|round|restart-name|rename-package|rename-file|rem|reduce|realpart|realp|readtablep|\nread-preserving-whitespace|read-line|read-from-string|read-delimited-list|read-char-no-hang|read-char|read|rationalp|rationalize|\nrational|rassoc-if-not|rassoc-if|rassoc|random-state-p|proclaim|probe-file|print-not-readable-object|print|princ-to-string|princ|\nprin1-to-string|prin1|pprint-tab|pprint-indent|pprint-dispatch|pprint|position-if-not|position-if|position|plusp|phase|peek-char|pathnamep|\npathname-version|pathname-type|pathname-name|pathname-match-p|pathname-host|pathname-directory|pathname-device|pathname|parse-namestring|\nparse-integer|pairlis|packagep|package-used-by-list|package-use-list|package-shadowing-symbols|package-nicknames|package-name|package-error-package|\noutput-stream-p|open-stream-p|open|oddp|numerator|numberp|null|nthcdr|notevery|notany|not|next-method-p|nbutlast|namestring|name-char|mod|mismatch|\nminusp|min|merge-pathnames|merge|member-if-not|member-if|member|max|maplist|mapl|mapcon|mapcar|mapcan|mapc|map-into|map|make-two-way-stream|\nmake-synonym-stream|make-symbol|make-string-output-stream|make-string-input-stream|make-string|make-sequence|make-random-state|make-pathname|\nmake-package|make-load-form-saving-slots|make-list|make-hash-table|make-echo-stream|make-dispatch-macro-character|make-condition|\nmake-concatenated-stream|make-broadcast-stream|make-array|macroexpand-1|macroexpand|machine-version|machine-type|machine-instance|lower-case-p|\nlong-site-name|logxor|logtest|logorc2|logorc1|lognot|lognor|lognand|logior|logical-pathname|logeqv|logcount|logbitp|logandc2|logandc1|logand|\nlog|load-logical-pathname-translations|load|listp|listen|list-length|list-all-packages|list\\*|list|lisp-implementation-version|\nlisp-implementation-type|length|ldb-test|lcm|last|keywordp|isqrt|intern|interactive-stream-p|integerp|integer-length|integer-decode-float|\ninput-stream-p|imagpart|identity|host-namestring|hash-table-test|hash-table-size|hash-table-rehash-threshold|hash-table-rehash-size|hash-table-p|\nhash-table-count|graphic-char-p|get-universal-time|get-setf-expansion|get-properties|get-internal-run-time|get-internal-real-time|\nget-decoded-time|gcd|functionp|function-lambda-expression|funcall|ftruncate|fround|format|force-output|fmakunbound|floor|floatp|float-sign|\nfloat-radix|float-precision|float-digits|float|finish-output|find-symbol|find-restart|find-package|find-if-not|find-if|find-all-symbols|find|\nfile-write-date|file-string-length|file-namestring|file-length|file-error-pathname|file-author|ffloor|fceiling|fboundp|expt|exp|every|evenp|\neval|equalp|equal|eql|eq|ensure-generic-function|ensure-directories-exist|enough-namestring|endp|encode-universal-time|ed|echo-stream-output-stream|\necho-stream-input-stream|dribble|dpb|disassemble|directory-namestring|directory|digit-char-p|digit-char|deposit-field|denominator|delete-package|\ndelete-file|decode-universal-time|decode-float|count-if-not|count-if|count|cosh|cos|copy-tree|copy-symbol|copy-structure|copy-seq|copy-readtable|\ncopy-pprint-dispatch|copy-list|copy-alist|constantp|constantly|consp|cons|conjugate|concatenated-stream-streams|concatenate|compute-restarts|\ncomplexp|complex|complement|compiled-function-p|compile-file-pathname|compile-file|compile|coerce|code-char|clear-output|class-of|cis|characterp|\ncharacter|char>=|char>|char=|char<=|char<|char\\/=|char-upcase|char-not-lessp|char-not-greaterp|char-not-equal|char-name|char-lessp|char-int|\nchar-greaterp|char-equal|char-downcase|char-code|cerror|cell-error-name|ceiling|call-next-method|byte-size|byte-position|byte|butlast|\nbroadcast-stream-streams|boundp|both-case-p|boole|bit-xor|bit-vector-p|bit-orc2|bit-orc1|bit-not|bit-nor|bit-nand|bit-ior|bit-eqv|bit-andc2|\nbit-andc1|bit-and|atom|atanh|atan|assoc-if-not|assoc-if|assoc|asinh|asin|ash|arrayp|array-total-size|array-row-major-index|array-rank|\narray-in-bounds-p|array-has-fill-pointer-p|array-element-type|array-displacement|array-dimensions|array-dimension|arithmetic-error-operation|\narithmetic-error-operands|apropos-list|apropos|apply|append|alphanumericp|alpha-char-p|adjustable-array-p|adjust-array|adjoin|acosh|acos|acons|\nabs|>=|>|=|<=|<|1-|1\\+|\\/=|\\/|-|\\+|\\*)\n(?=(\\s|\\(|\\)))",
|
|
266
|
+
"name": "support.function.f.sideeffects.commonlisp"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|\\#')\n(?:variable|update-instance-for-redefined-class|update-instance-for-different-class|structure|slot-unbound|slot-missing|shared-initialize|\nremove-method|print-object|no-next-method|no-applicable-method|method-qualifiers|make-load-form|make-instances-obsolete|make-instance|\ninitialize-instance|function-keywords|find-method|documentation|describe-object|compute-applicable-methods|compiler-macro|class-name|\nchange-class|allocate-instance|add-method)\n(?=(\\s|\\(|\\)))",
|
|
270
|
+
"name": "support.function.sgf.nosideeffects.commonlisp"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|\\#')\n(?:reinitialize-instance)\n(?=(\\s|\\(|\\)))",
|
|
274
|
+
"name": "support.function.sgf.sideeffects.commonlisp"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|\\#')\n(?:satisfies)\n(?=(\\s|\\(|\\)))",
|
|
278
|
+
"name": "support.function.typespecifier.commonlisp"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"lambda-list": {
|
|
283
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:&[#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?|&whole|&rest|&optional|&key|&environment|&body|&aux|&allow-other-keys)\n(?=(\\s|\\(|\\)))",
|
|
284
|
+
"name": "keyword.other.lambdalist.commonlisp"
|
|
285
|
+
},
|
|
286
|
+
"macro": {
|
|
287
|
+
"patterns": [
|
|
288
|
+
{
|
|
289
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:with-standard-io-syntax|with-slots|with-simple-restart|with-package-iterator|with-hash-table-iterator|with-condition-restarts|\nwith-compilation-unit|with-accessors|when|unless|typecase|time|step|shiftf|setf|rotatef|return|restart-case|restart-bind|psetf|prog2|prog1|\nprog\\*|prog|print-unreadable-object|pprint-logical-block|pprint-exit-if-list-exhausted|or|nth-value|multiple-value-setq|multiple-value-list|\nmultiple-value-bind|make-method|loop|lambda|ignore-errors|handler-case|handler-bind|formatter|etypecase|dotimes|dolist|do-symbols|do-external-symbols|\ndo-all-symbols|do\\*|do|destructuring-bind|defun|deftype|defstruct|defsetf|defpackage|defmethod|defmacro|define-symbol-macro|define-setf-expander|\ndefine-condition|define-compiler-macro|defgeneric|defconstant|defclass|declaim|ctypecase|cond|call-method|assert|and)\n(?=(\\s|\\(|\\)))",
|
|
290
|
+
"name": "storage.type.function.m.nosideeffects.commonlisp"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:with-output-to-string|with-open-stream|with-open-file|with-input-from-string|untrace|trace|remf|pushnew|push|psetq|pprint-pop|pop|\notherwise|loop-finish|incf|in-package|ecase|defvar|defparameter|define-modify-macro|define-method-combination|decf|check-type|ccase|case)\n(?=(\\s|\\(|\\)))",
|
|
294
|
+
"name": "storage.type.function.m.sideeffects.commonlisp"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:setq)\n(?=(\\s|\\(|\\)))",
|
|
298
|
+
"name": "storage.type.function.specialform.commonlisp"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"package": {
|
|
303
|
+
"patterns": [
|
|
304
|
+
{
|
|
305
|
+
"captures": {
|
|
306
|
+
"2": {
|
|
307
|
+
"name": "support.type.package.commonlisp"
|
|
308
|
+
},
|
|
309
|
+
"3": {
|
|
310
|
+
"name": "support.type.package.commonlisp"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\n([A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n|\n(\\#)\n)\n(?=\\:\\:|\\:)"
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"punctuation": {
|
|
318
|
+
"patterns": [
|
|
319
|
+
{
|
|
320
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n('|`)\n(?=\\S)",
|
|
321
|
+
"name": "variable.other.constant.singlequote.commonlisp"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(?:\\:[#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n(?=(\\s|\\(|\\)))",
|
|
325
|
+
"name": "entity.name.variable.commonlisp"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"captures": {
|
|
329
|
+
"1": {
|
|
330
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
331
|
+
},
|
|
332
|
+
"2": {
|
|
333
|
+
"name": "constant.numeric.commonlisp"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#)([0-9]*)\n(?=\\()"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"captures": {
|
|
340
|
+
"1": {
|
|
341
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
342
|
+
},
|
|
343
|
+
"2": {
|
|
344
|
+
"name": "constant.numeric.commonlisp"
|
|
345
|
+
},
|
|
346
|
+
"3": {
|
|
347
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#)\n([0-9]*)\n(\\*)\n(?=0|1)"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#\\*|\\#0\\*)\n(?=(\\s|\\(|\\)))",
|
|
354
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"captures": {
|
|
358
|
+
"1": {
|
|
359
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
360
|
+
},
|
|
361
|
+
"2": {
|
|
362
|
+
"name": "constant.numeric.commonlisp"
|
|
363
|
+
},
|
|
364
|
+
"3": {
|
|
365
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#)\n([0-9]+)\n(a|A)\n(?=.)"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"captures": {
|
|
372
|
+
"1": {
|
|
373
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
374
|
+
},
|
|
375
|
+
"2": {
|
|
376
|
+
"name": "constant.numeric.commonlisp"
|
|
377
|
+
},
|
|
378
|
+
"3": {
|
|
379
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#)\n([0-9]+)\n(=)\n(?=.)"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"captures": {
|
|
386
|
+
"1": {
|
|
387
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
388
|
+
},
|
|
389
|
+
"2": {
|
|
390
|
+
"name": "constant.numeric.commonlisp"
|
|
391
|
+
},
|
|
392
|
+
"3": {
|
|
393
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#)\n([0-9]+)\n(\\#)\n(?=.)"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#(\\+|-))\n(?=\\S)",
|
|
400
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#('|,|\\.|c|C|s|S|p|P))\n(?=\\S)",
|
|
404
|
+
"name": "variable.other.constant.sharpsign.commonlisp"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"captures": {
|
|
408
|
+
"1": {
|
|
409
|
+
"name": "support.type.package.commonlisp"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(\\#)\n(:)\n(?=\\S)"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"captures": {
|
|
416
|
+
"2": {
|
|
417
|
+
"name": "variable.other.constant.backquote.commonlisp"
|
|
418
|
+
},
|
|
419
|
+
"3": {
|
|
420
|
+
"name": "variable.other.constant.backquote.commonlisp"
|
|
421
|
+
},
|
|
422
|
+
"4": {
|
|
423
|
+
"name": "variable.other.constant.backquote.commonlisp"
|
|
424
|
+
},
|
|
425
|
+
"5": {
|
|
426
|
+
"name": "variable.other.constant.backquote.commonlisp"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(\n(`\\#)\n|\n(`)(,@|,\\.|,)?\n|\n(,@|,\\.|,)\n)\n(?=\\S)"
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"special-operator": {
|
|
434
|
+
"captures": {
|
|
435
|
+
"2": {
|
|
436
|
+
"name": "keyword.control.commonlisp"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"match": "(?xi)\n(\\(\\s*)\n(unwind-protect|throw|the|tagbody|symbol-macrolet|return-from|quote|progv|progn|multiple-value-prog1|multiple-value-call|\nmacrolet|locally|load-time-value|let\\*|let|labels|if|go|function|flet|eval-when|catch|block)\n(?=(\\s|\\(|\\)))"
|
|
440
|
+
},
|
|
441
|
+
"string": {
|
|
442
|
+
"begin": "(\")",
|
|
443
|
+
"beginCaptures": {
|
|
444
|
+
"1": {
|
|
445
|
+
"name": "punctuation.definition.string.begin.commonlisp"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"end": "(\")",
|
|
449
|
+
"endCaptures": {
|
|
450
|
+
"1": {
|
|
451
|
+
"name": "punctuation.definition.string.end.commonlisp"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"name": "string.quoted.double.commonlisp",
|
|
455
|
+
"patterns": [
|
|
456
|
+
{
|
|
457
|
+
"match": "\\\\.",
|
|
458
|
+
"name": "constant.character.escape.commonlisp"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"captures": {
|
|
462
|
+
"1": {
|
|
463
|
+
"name": "storage.type.function.formattedstring.commonlisp"
|
|
464
|
+
},
|
|
465
|
+
"10": {
|
|
466
|
+
"name": "storage.type.function.formattedstring.commonlisp"
|
|
467
|
+
},
|
|
468
|
+
"2": {
|
|
469
|
+
"name": "variable.other.constant.formattedstring.commonlisp"
|
|
470
|
+
},
|
|
471
|
+
"8": {
|
|
472
|
+
"name": "storage.type.function.formattedstring.commonlisp"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"match": "(?xi)\n\n(~)\n(\n(\n(([+-]?[0-9]+)|('.)|V|\\#)*?\n(,)?\n)\n*?)\n(\n(:@|@:|:|@)\n?)\n(\\(|\\)|\\[|\\]|;|{|}|<|>|\\^)"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"captures": {
|
|
479
|
+
"1": {
|
|
480
|
+
"name": "entity.name.variable.commonlisp"
|
|
481
|
+
},
|
|
482
|
+
"10": {
|
|
483
|
+
"name": "entity.name.variable.commonlisp"
|
|
484
|
+
},
|
|
485
|
+
"2": {
|
|
486
|
+
"name": "variable.other.constant.formattedstring.commonlisp"
|
|
487
|
+
},
|
|
488
|
+
"8": {
|
|
489
|
+
"name": "entity.name.variable.commonlisp"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"match": "(?xi)\n\n(~)\n(\n(\n(([+-]?[0-9]+)|('.)|V|\\#)*?\n(,)?\n)\n*?)\n(\n(:@|@:|:|@)\n?)\n(A|S|D|B|O|X|R|P|C|F|E|G|\\$|%|\\&|\\||~|T|\\*|\\?|_|W|I)"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"captures": {
|
|
496
|
+
"1": {
|
|
497
|
+
"name": "entity.name.variable.commonlisp"
|
|
498
|
+
},
|
|
499
|
+
"10": {
|
|
500
|
+
"name": "entity.name.variable.commonlisp"
|
|
501
|
+
},
|
|
502
|
+
"11": {
|
|
503
|
+
"name": "entity.name.variable.commonlisp"
|
|
504
|
+
},
|
|
505
|
+
"12": {
|
|
506
|
+
"name": "entity.name.variable.commonlisp"
|
|
507
|
+
},
|
|
508
|
+
"2": {
|
|
509
|
+
"name": "variable.other.constant.formattedstring.commonlisp"
|
|
510
|
+
},
|
|
511
|
+
"8": {
|
|
512
|
+
"name": "entity.name.variable.commonlisp"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"match": "(?xi)\n\n(~)\n(\n(\n(([+-]?[0-9]+)|('.)|V|\\#)*?\n(,)?\n)\n*?)\n(\n(:@|@:|:|@)\n?)\n(\\/)\n([#:A-Za-z0-9\\+\\-\\*\\/\\@\\$\\%\\^\\&\\_\\=\\<\\>\\~\\!\\?\\[\\]\\{\\}\\.]+?)\n(\\/)"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"match": "(~\\n)",
|
|
519
|
+
"name": "variable.other.constant.formattedstring.commonlisp"
|
|
520
|
+
}
|
|
521
|
+
]
|
|
522
|
+
},
|
|
523
|
+
"style-guide": {
|
|
524
|
+
"patterns": [
|
|
525
|
+
{
|
|
526
|
+
"captures": {
|
|
527
|
+
"3": {
|
|
528
|
+
"name": "source.commonlisp"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"match": "(?xi)\n(?<=^'|\\s'|\\('|,@'|,\\.'|,')\n(\\S+?)\n(\\:\\:|\\:)\n((\\+[^\\s\\+]+\\+)|(\\*[^\\s\\*]+\\*))\n(?=(\\s|\\(|\\)))"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"match": "(?xi)\n(?<=\\S:|^|\\s|\\()\n(\\+[^\\s\\+]+\\+)\n(?=(\\s|\\(|\\)))",
|
|
535
|
+
"name": "variable.other.constant.earmuffsplus.commonlisp"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"match": "(?xi)\n(?<=\\S:|^|\\s|\\()\n(\\*[^\\s\\*]+\\*)\n(?=(\\s|\\(|\\)))",
|
|
539
|
+
"name": "string.regexp.earmuffsasterisk.commonlisp"
|
|
540
|
+
}
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
"symbol": {
|
|
544
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:method-combination|declare)\n(?=(\\s|\\(|\\)))",
|
|
545
|
+
"name": "storage.type.function.symbol.commonlisp"
|
|
546
|
+
},
|
|
547
|
+
"type": {
|
|
548
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:unsigned-byte|standard-char|standard|single-float|simple-vector|simple-string|simple-bit-vector|simple-base-string|simple-array|\nsigned-byte|short-float|long-float|keyword|fixnum|extended-char|double-float|compiled-function|boolean|bignum|base-string|base-char)\n(?=(\\s|\\(|\\)))",
|
|
549
|
+
"name": "support.type.t.commonlisp"
|
|
550
|
+
},
|
|
551
|
+
"variable": {
|
|
552
|
+
"patterns": [
|
|
553
|
+
{
|
|
554
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:\\*trace-output\\*|\\*terminal-io\\*|\\*standard-output\\*|\\*standard-input\\*|\\*readtable\\*|\\*read-suppress\\*|\\*read-eval\\*|\n\\*read-default-float-format\\*|\\*read-base\\*|\\*random-state\\*|\\*query-io\\*|\\*print-right-margin\\*|\\*print-readably\\*|\\*print-radix\\*|\\*print-pretty\\*|\n\\*print-pprint-dispatch\\*|\\*print-miser-width\\*|\\*print-lines\\*|\\*print-level\\*|\\*print-length\\*|\\*print-gensym\\*|\\*print-escape\\*|\\*print-circle\\*|\n\\*print-case\\*|\\*print-base\\*|\\*print-array\\*|\\*package\\*|\\*modules\\*|\\*macroexpand-hook\\*|\\*load-verbose\\*|\\*load-truename\\*|\\*load-print\\*|\n\\*load-pathname\\*|\\*gensym-counter\\*|\\*features\\*|\\*error-output\\*|\\*default-pathname-defaults\\*|\\*debugger-hook\\*|\\*debug-io\\*|\\*compile-verbose\\*|\n\\*compile-print\\*|\\*compile-file-truename\\*|\\*compile-file-pathname\\*|\\*break-on-signals\\*)\n(?=(\\s|\\(|\\)))",
|
|
555
|
+
"name": "string.regexp.earmuffsasterisk.commonlisp"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:\\*\\*\\*|\\*\\*|\\+\\+\\+|\\+\\+|\\/\\/\\/|\\/\\/)\n(?=(\\s|\\(|\\)))",
|
|
559
|
+
"name": "variable.other.repl.commonlisp"
|
|
560
|
+
}
|
|
561
|
+
]
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"scopeName": "source.commonlisp"
|
|
565
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Desktop",
|
|
3
|
+
"name": "desktop",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#layout"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"include": "#keywords"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"include": "#values"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#inCommands"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"include": "#inCategories"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"repository": {
|
|
22
|
+
"inCategories": {
|
|
23
|
+
"patterns": [
|
|
24
|
+
{
|
|
25
|
+
"match": "(?<=^Categories.*)AudioVideo|(?<=^Categories.*)Audio|(?<=^Categories.*)Video|(?<=^Categories.*)Development|(?<=^Categories.*)Education|(?<=^Categories.*)Game|(?<=^Categories.*)Graphics|(?<=^Categories.*)Network|(?<=^Categories.*)Office|(?<=^Categories.*)Science|(?<=^Categories.*)Settings|(?<=^Categories.*)System|(?<=^Categories.*)Utility",
|
|
26
|
+
"name": "markup.bold"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"inCommands": {
|
|
31
|
+
"patterns": [
|
|
32
|
+
{
|
|
33
|
+
"match": "(?<=^Exec.*\\s)-+\\S+",
|
|
34
|
+
"name": "variable.parameter"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"match": "(?<=^Exec.*)\\s\\%[fFuUick]\\s",
|
|
38
|
+
"name": "variable.language"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"match": "\".*\"",
|
|
42
|
+
"name": "string"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"keywords": {
|
|
47
|
+
"patterns": [
|
|
48
|
+
{
|
|
49
|
+
"match": "^Type\\b|^Version\\b|^Name\\b|^GenericName\\b|^NoDisplay\\b|^Comment\\b|^Icon\\b|^Hidden\\b|^OnlyShowIn\\b|^NotShowIn\\b|^DBusActivatable\\b|^TryExec\\b|^Exec\\b|^Path\\b|^Terminal\\b|^Actions\\b|^MimeType\\b|^Categories\\b|^Implements\\b|^Keywords\\b|^StartupNotify\\b|^StartupWMClass\\b|^URL\\b|^PrefersNonDefaultGPU\\b|^Encoding\\b",
|
|
50
|
+
"name": "keyword"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"match": "^X-[A-z 0-9 -]*",
|
|
54
|
+
"name": "keyword.other"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"match": "(?<!^)\\[.+\\]",
|
|
58
|
+
"name": "constant.language"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"match": "^GtkTheme\\b|^MetacityTheme\\b|^IconTheme\\b|^CursorTheme\\b|^ButtonLayout\\b|^ApplicationFont\\b",
|
|
62
|
+
"name": "keyword"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"layout": {
|
|
67
|
+
"patterns": [
|
|
68
|
+
{
|
|
69
|
+
"begin": "^\\[Desktop",
|
|
70
|
+
"end": "\\]",
|
|
71
|
+
"name": "markup.heading"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"begin": "^\\[X-\\w*",
|
|
75
|
+
"end": "\\]",
|
|
76
|
+
"name": "markup.heading"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"match": "^\\s*#.*",
|
|
80
|
+
"name": "comment"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"match": ";",
|
|
84
|
+
"name": "strong"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"values": {
|
|
89
|
+
"patterns": [
|
|
90
|
+
{
|
|
91
|
+
"match": "(?<=^\\S+)=",
|
|
92
|
+
"name": "keyword.operator"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"match": "\\btrue\\b|\\bfalse\\b",
|
|
96
|
+
"name": "variable.other"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"match": "(?<=^Version.*)\\d+(\\.{0,1}\\d*)",
|
|
100
|
+
"name": "variable.other"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"scopeName": "source.desktop"
|
|
106
|
+
}
|