@codingame/monaco-languageclient-wrapper 1.0.9 → 1.1.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.
Files changed (170) hide show
  1. package/dist/BSV.tmLanguage.js +299 -0
  2. package/dist/COBOL Copybook.js +2017 -0
  3. package/dist/COBOL.js +2017 -0
  4. package/dist/COBOL.tmLanguage.js +149 -0
  5. package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
  6. package/dist/Configuration.d.ts +15 -0
  7. package/dist/Erlang.plist.js +1752 -0
  8. package/dist/JSON.tmLanguage.js +221 -0
  9. package/dist/JSONC.tmLanguage.js +221 -0
  10. package/dist/JavaScript.tmLanguage.js +5894 -0
  11. package/dist/Kotlin.tmLanguage.js +724 -0
  12. package/dist/MagicPython.tmLanguage.js +5340 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  15. package/dist/SQL.plist.js +482 -0
  16. package/dist/Scala.tmLanguage.js +1255 -0
  17. package/dist/TypeScript.tmLanguage.js +5641 -0
  18. package/dist/WatchableConsoleWindow.d.ts +22 -0
  19. package/dist/_rollupPluginBabelHelpers.js +54 -0
  20. package/dist/asp-vb-net.tmlanguage.js +247 -0
  21. package/dist/bsv.js +49 -0
  22. package/dist/c.js +18 -0
  23. package/dist/c.tmLanguage.js +3347 -0
  24. package/dist/cabal.tmLanguage.js +66 -0
  25. package/dist/clojure.tmLanguage.js +443 -0
  26. package/dist/codeblock-cabal.js +42 -0
  27. package/dist/codeblock-haskell.js +42 -0
  28. package/dist/codeblock-literate-haskell.js +42 -0
  29. package/dist/codeblock.js +36 -0
  30. package/dist/codeblock2.js +95 -0
  31. package/dist/coffeescript.js +18 -0
  32. package/dist/coffeescript.tmLanguage.js +1324 -0
  33. package/dist/configuration/index.d.ts +5 -0
  34. package/dist/cpp.js +18 -0
  35. package/dist/cpp.tmLanguage.js +19996 -0
  36. package/dist/createLanguageClient.d.ts +2 -2
  37. package/dist/csharp.js +18 -0
  38. package/dist/csharp.tmLanguage.js +4750 -0
  39. package/dist/css.tmLanguage.js +1873 -0
  40. package/dist/css.worker.js +6 -0
  41. package/dist/cssContribution.js +10 -0
  42. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  43. package/dist/d.js +3159 -0
  44. package/dist/dart.js +530 -0
  45. package/dist/diet.js +758 -0
  46. package/dist/diet2.js +92 -0
  47. package/dist/dml.js +169 -0
  48. package/dist/eex.js +55 -0
  49. package/dist/elixir.js +2341 -0
  50. package/dist/elixir2.js +184 -0
  51. package/dist/erlang.js +195 -0
  52. package/dist/expression.js +846 -0
  53. package/dist/extensions/autofold.d.ts +2 -0
  54. package/dist/extensions/cobol.d.ts +2 -0
  55. package/dist/extensions/index.d.ts +2 -0
  56. package/dist/features/cssContribution.d.ts +1 -0
  57. package/dist/features/htmlContribution.d.ts +1 -0
  58. package/dist/features/jsonContribution.d.ts +1 -0
  59. package/dist/features/typescriptContribution.d.ts +1 -0
  60. package/dist/fsharp.js +18 -0
  61. package/dist/fsharp.tmLanguage.js +1811 -0
  62. package/dist/go.tmLanguage.js +1025 -0
  63. package/dist/groovy.js +229 -0
  64. package/dist/groovy.tmLanguage.js +1391 -0
  65. package/dist/haskell.tmLanguage.js +629 -0
  66. package/dist/html (eex).js +31 -0
  67. package/dist/html-derivative.tmLanguage.js +57 -0
  68. package/dist/html.tmLanguage.js +2652 -0
  69. package/dist/html.tmLanguage2.js +97 -0
  70. package/dist/html.worker.js +6 -0
  71. package/dist/htmlContribution.js +10 -0
  72. package/dist/index.d.ts +2 -2
  73. package/dist/inline-styles.js +104 -0
  74. package/dist/inline-template.js +88 -0
  75. package/dist/java.js +18 -0
  76. package/dist/java.tmLanguage.js +1863 -0
  77. package/dist/javascript.js +196 -0
  78. package/dist/javascriptreact.js +196 -0
  79. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  80. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  81. package/dist/json.worker.js +6 -0
  82. package/dist/jsonContribution.js +78 -0
  83. package/dist/keybindings/index.d.ts +2 -0
  84. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  85. package/dist/keybindings/vim.d.ts +3 -0
  86. package/dist/kotlin.js +117 -0
  87. package/dist/kotlinscript.js +117 -0
  88. package/dist/languageClient.d.ts +8 -14
  89. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  90. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  91. package/dist/languages/index.d.ts +3 -0
  92. package/dist/languages/monarch/index.d.ts +7 -0
  93. package/dist/languages/monarch/list.d.ts +7 -0
  94. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  95. package/dist/languages/snippets/index.d.ts +1 -0
  96. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  97. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  98. package/dist/languages/textMate/index.d.ts +2 -0
  99. package/dist/literateHaskell.tmLanguage.js +70 -0
  100. package/dist/lua.tmLanguage.js +289 -0
  101. package/dist/main.js +619 -314
  102. package/dist/markdown.js +103 -0
  103. package/dist/markdown.tmLanguage.js +2784 -0
  104. package/dist/merlin.js +111 -0
  105. package/dist/monaco.d.ts +8 -0
  106. package/dist/objective-c.tmLanguage.js +3618 -0
  107. package/dist/ocaml-hover-info.js +34 -0
  108. package/dist/ocaml-hover-type.js +24 -0
  109. package/dist/ocaml-markdown-codeblock.js +42 -0
  110. package/dist/ocaml.js +2979 -0
  111. package/dist/ocamlbuild.js +239 -0
  112. package/dist/opam.js +149 -0
  113. package/dist/pascal.js +382 -0
  114. package/dist/pascal.tmLanguage.js +169 -0
  115. package/dist/perl.tmLanguage.js +2986 -0
  116. package/dist/perl6.tmLanguage.js +323 -0
  117. package/dist/pgsql.tmLanguage.js +284 -0
  118. package/dist/php.js +265 -0
  119. package/dist/php.tmLanguage.js +3791 -0
  120. package/dist/platform.tmLanguage.js +1135 -0
  121. package/dist/powershell.js +18 -0
  122. package/dist/powershell.tmLanguage.js +1037 -0
  123. package/dist/r.tmLanguage.js +551 -0
  124. package/dist/reason-hover-info.js +34 -0
  125. package/dist/reason-hover-signature.js +21 -0
  126. package/dist/reason-hover-type.js +21 -0
  127. package/dist/reason-markdown-codeblock.js +42 -0
  128. package/dist/reason.js +100 -0
  129. package/dist/ruby.tmLanguage.js +2784 -0
  130. package/dist/rust.tmLanguage.js +1178 -0
  131. package/dist/sassdoc.tmLanguage.js +362 -0
  132. package/dist/scss.tmLanguage.js +1887 -0
  133. package/dist/sdc.tmLanguage.js +712 -0
  134. package/dist/sdl.js +162 -0
  135. package/dist/services/Configuration.d.ts +2 -3
  136. package/dist/services/EditorModelResolverService.d.ts +8 -0
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  138. package/dist/services/WatchableConsoleWindow.d.ts +2 -0
  139. package/dist/services.d.ts +1 -2
  140. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  141. package/dist/sql.js +21 -0
  142. package/dist/staticOptions.d.ts +9 -0
  143. package/dist/stub-generator.js +15 -0
  144. package/dist/swift.js +183 -0
  145. package/dist/swift.tmLanguage.js +3288 -0
  146. package/dist/systemverilog.js +208 -0
  147. package/dist/systemverilog.tmLanguage.js +1067 -0
  148. package/dist/tcl.js +151 -0
  149. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  150. package/dist/template.js +207 -0
  151. package/dist/theme/index.d.ts +3 -0
  152. package/dist/theme/registry.d.ts +4 -0
  153. package/dist/theme/semanticHighlight.d.ts +1 -0
  154. package/dist/theme/tools.d.ts +13 -0
  155. package/dist/tools.d.ts +3 -0
  156. package/dist/ts.worker.js +6 -0
  157. package/dist/typescript.js +312 -0
  158. package/dist/typescriptContribution.js +36 -0
  159. package/dist/typescriptreact.js +312 -0
  160. package/dist/ucf.tmLanguage.js +36 -0
  161. package/dist/vb.js +88 -0
  162. package/dist/verilog.js +432 -0
  163. package/dist/verilog.tmLanguage.js +321 -0
  164. package/dist/worker.d.ts +6 -0
  165. package/dist/worker.js +54 -0
  166. package/dist/xml.tmLanguage.js +395 -0
  167. package/dist/xsl.tmLanguage.js +102 -0
  168. package/dist/yaml.tmLanguage.js +629 -0
  169. package/package.json +19 -20
  170. package/stats.html +1 -1
@@ -0,0 +1,1324 @@
1
+ var information_for_contributors = [
2
+ "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/coffeescript/",
3
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
+ "Once accepted there, we are happy to receive an update request."
5
+ ];
6
+ var version = "https://github.com/atom/language-coffee-script/commit/0f6db9143663e18b1ad00667820f46747dba495e";
7
+ var name = "CoffeeScript";
8
+ var scopeName = "source.coffee";
9
+ var patterns = [
10
+ {
11
+ include: "#jsx"
12
+ },
13
+ {
14
+ match: "(new)\\s+(?:(?:(class)\\s+(\\w+(?:\\.\\w*)*)?)|(\\w+(?:\\.\\w*)*))",
15
+ name: "meta.class.instance.constructor.coffee",
16
+ captures: {
17
+ "1": {
18
+ name: "keyword.operator.new.coffee"
19
+ },
20
+ "2": {
21
+ name: "storage.type.class.coffee"
22
+ },
23
+ "3": {
24
+ name: "entity.name.type.instance.coffee"
25
+ },
26
+ "4": {
27
+ name: "entity.name.type.instance.coffee"
28
+ }
29
+ }
30
+ },
31
+ {
32
+ begin: "'''",
33
+ beginCaptures: {
34
+ "0": {
35
+ name: "punctuation.definition.string.begin.coffee"
36
+ }
37
+ },
38
+ end: "'''",
39
+ endCaptures: {
40
+ "0": {
41
+ name: "punctuation.definition.string.end.coffee"
42
+ }
43
+ },
44
+ name: "string.quoted.single.heredoc.coffee",
45
+ patterns: [
46
+ {
47
+ captures: {
48
+ "1": {
49
+ name: "punctuation.definition.escape.backslash.coffee"
50
+ }
51
+ },
52
+ match: "(\\\\).",
53
+ name: "constant.character.escape.backslash.coffee"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ begin: "\"\"\"",
59
+ beginCaptures: {
60
+ "0": {
61
+ name: "punctuation.definition.string.begin.coffee"
62
+ }
63
+ },
64
+ end: "\"\"\"",
65
+ endCaptures: {
66
+ "0": {
67
+ name: "punctuation.definition.string.end.coffee"
68
+ }
69
+ },
70
+ name: "string.quoted.double.heredoc.coffee",
71
+ patterns: [
72
+ {
73
+ captures: {
74
+ "1": {
75
+ name: "punctuation.definition.escape.backslash.coffee"
76
+ }
77
+ },
78
+ match: "(\\\\).",
79
+ name: "constant.character.escape.backslash.coffee"
80
+ },
81
+ {
82
+ include: "#interpolated_coffee"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ match: "(`)(.*)(`)",
88
+ name: "string.quoted.script.coffee",
89
+ captures: {
90
+ "1": {
91
+ name: "punctuation.definition.string.begin.coffee"
92
+ },
93
+ "2": {
94
+ name: "source.js.embedded.coffee",
95
+ patterns: [
96
+ {
97
+ include: "source.js"
98
+ }
99
+ ]
100
+ },
101
+ "3": {
102
+ name: "punctuation.definition.string.end.coffee"
103
+ }
104
+ }
105
+ },
106
+ {
107
+ begin: "(?<!#)###(?!#)",
108
+ beginCaptures: {
109
+ "0": {
110
+ name: "punctuation.definition.comment.coffee"
111
+ }
112
+ },
113
+ end: "###",
114
+ endCaptures: {
115
+ "0": {
116
+ name: "punctuation.definition.comment.coffee"
117
+ }
118
+ },
119
+ name: "comment.block.coffee",
120
+ patterns: [
121
+ {
122
+ match: "(?<=^|\\s)@\\w*(?=\\s)",
123
+ name: "storage.type.annotation.coffee"
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ begin: "#",
129
+ beginCaptures: {
130
+ "0": {
131
+ name: "punctuation.definition.comment.coffee"
132
+ }
133
+ },
134
+ end: "$",
135
+ name: "comment.line.number-sign.coffee"
136
+ },
137
+ {
138
+ begin: "///",
139
+ end: "(///)[gimuy]*",
140
+ name: "string.regexp.multiline.coffee",
141
+ beginCaptures: {
142
+ "0": {
143
+ name: "punctuation.definition.string.begin.coffee"
144
+ }
145
+ },
146
+ endCaptures: {
147
+ "1": {
148
+ name: "punctuation.definition.string.end.coffee"
149
+ }
150
+ },
151
+ patterns: [
152
+ {
153
+ include: "#heregexp"
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ begin: "(?<![\\w$])(/)(?=(?![/*+?])(.+)(/)[gimuy]*(?!\\s*[\\w$/(]))",
159
+ beginCaptures: {
160
+ "1": {
161
+ name: "punctuation.definition.string.begin.coffee"
162
+ }
163
+ },
164
+ end: "(/)[gimuy]*(?!\\s*[\\w$/(])",
165
+ endCaptures: {
166
+ "1": {
167
+ name: "punctuation.definition.string.end.coffee"
168
+ }
169
+ },
170
+ name: "string.regexp.coffee",
171
+ patterns: [
172
+ {
173
+ include: "source.js.regexp"
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ match: "\\b(?<![\\.\\$])(break|by|catch|continue|else|finally|for|in|of|if|return|switch|then|throw|try|unless|when|while|until|loop|do|export|import|default|from|as|yield|async|await|(?<=for)\\s+own)(?!\\s*:)\\b",
179
+ name: "keyword.control.coffee"
180
+ },
181
+ {
182
+ match: "\\b(?<![\\.\\$])(delete|instanceof|new|typeof)(?!\\s*:)\\b",
183
+ name: "keyword.operator.$1.coffee"
184
+ },
185
+ {
186
+ match: "\\b(?<![\\.\\$])(case|function|var|void|with|const|let|enum|native|__hasProp|__extends|__slice|__bind|__indexOf|implements|interface|package|private|protected|public|static)(?!\\s*:)\\b",
187
+ name: "keyword.reserved.coffee"
188
+ },
189
+ {
190
+ begin: "(?x)\n(?<=\\s|^)((@)?[a-zA-Z_$][\\w$]*)\n\\s*([:=])\\s*\n(?=(\\([^\\(\\)]*\\)\\s*)?[=-]>)",
191
+ beginCaptures: {
192
+ "1": {
193
+ name: "entity.name.function.coffee"
194
+ },
195
+ "2": {
196
+ name: "variable.other.readwrite.instance.coffee"
197
+ },
198
+ "3": {
199
+ name: "keyword.operator.assignment.coffee"
200
+ }
201
+ },
202
+ end: "[=-]>",
203
+ endCaptures: {
204
+ "0": {
205
+ name: "storage.type.function.coffee"
206
+ }
207
+ },
208
+ name: "meta.function.coffee",
209
+ patterns: [
210
+ {
211
+ include: "#function_params"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ begin: "(?x)\n(?<=\\s|^)(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\n\\s*([:=])\\s*\n(?=(\\([^\\(\\)]*\\)\\s*)?[=-]>)",
217
+ beginCaptures: {
218
+ "1": {
219
+ name: "string.quoted.single.coffee"
220
+ },
221
+ "2": {
222
+ name: "punctuation.definition.string.begin.coffee"
223
+ },
224
+ "3": {
225
+ name: "entity.name.function.coffee"
226
+ },
227
+ "4": {
228
+ name: "punctuation.definition.string.end.coffee"
229
+ },
230
+ "5": {
231
+ name: "string.quoted.double.coffee"
232
+ },
233
+ "6": {
234
+ name: "punctuation.definition.string.begin.coffee"
235
+ },
236
+ "7": {
237
+ name: "entity.name.function.coffee"
238
+ },
239
+ "8": {
240
+ name: "punctuation.definition.string.end.coffee"
241
+ },
242
+ "9": {
243
+ name: "keyword.operator.assignment.coffee"
244
+ }
245
+ },
246
+ end: "[=-]>",
247
+ endCaptures: {
248
+ "0": {
249
+ name: "storage.type.function.coffee"
250
+ }
251
+ },
252
+ name: "meta.function.coffee",
253
+ patterns: [
254
+ {
255
+ include: "#function_params"
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ begin: "(?=(\\([^\\(\\)]*\\)\\s*)?[=-]>)",
261
+ end: "[=-]>",
262
+ endCaptures: {
263
+ "0": {
264
+ name: "storage.type.function.coffee"
265
+ }
266
+ },
267
+ name: "meta.function.inline.coffee",
268
+ patterns: [
269
+ {
270
+ include: "#function_params"
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ begin: "(?<=\\s|^)({)(?=[^'\"#]+?}[\\s\\]}]*=)",
276
+ beginCaptures: {
277
+ "1": {
278
+ name: "punctuation.definition.destructuring.begin.bracket.curly.coffee"
279
+ }
280
+ },
281
+ end: "}",
282
+ endCaptures: {
283
+ "0": {
284
+ name: "punctuation.definition.destructuring.end.bracket.curly.coffee"
285
+ }
286
+ },
287
+ name: "meta.variable.assignment.destructured.object.coffee",
288
+ patterns: [
289
+ {
290
+ include: "$self"
291
+ },
292
+ {
293
+ match: "[a-zA-Z$_]\\w*",
294
+ name: "variable.assignment.coffee"
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ begin: "(?<=\\s|^)(\\[)(?=[^'\"#]+?\\][\\s\\]}]*=)",
300
+ beginCaptures: {
301
+ "1": {
302
+ name: "punctuation.definition.destructuring.begin.bracket.square.coffee"
303
+ }
304
+ },
305
+ end: "\\]",
306
+ endCaptures: {
307
+ "0": {
308
+ name: "punctuation.definition.destructuring.end.bracket.square.coffee"
309
+ }
310
+ },
311
+ name: "meta.variable.assignment.destructured.array.coffee",
312
+ patterns: [
313
+ {
314
+ include: "$self"
315
+ },
316
+ {
317
+ match: "[a-zA-Z$_]\\w*",
318
+ name: "variable.assignment.coffee"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ match: "\\b(?<!\\.|::)(true|on|yes)(?!\\s*[:=][^=])\\b",
324
+ name: "constant.language.boolean.true.coffee"
325
+ },
326
+ {
327
+ match: "\\b(?<!\\.|::)(false|off|no)(?!\\s*[:=][^=])\\b",
328
+ name: "constant.language.boolean.false.coffee"
329
+ },
330
+ {
331
+ match: "\\b(?<!\\.|::)null(?!\\s*[:=][^=])\\b",
332
+ name: "constant.language.null.coffee"
333
+ },
334
+ {
335
+ match: "\\b(?<!\\.|::)extends(?!\\s*[:=])\\b",
336
+ name: "variable.language.coffee"
337
+ },
338
+ {
339
+ match: "(?<!\\.)\\b(?<!\\$)(super|this|arguments)(?!\\s*[:=][^=]|\\$)\\b",
340
+ name: "variable.language.$1.coffee"
341
+ },
342
+ {
343
+ captures: {
344
+ "1": {
345
+ name: "storage.type.class.coffee"
346
+ },
347
+ "2": {
348
+ name: "keyword.control.inheritance.coffee"
349
+ },
350
+ "3": {
351
+ name: "entity.other.inherited-class.coffee"
352
+ }
353
+ },
354
+ match: "(?<=\\s|^|\\[|\\()(class)\\s+(extends)\\s+(@?[a-zA-Z\\$\\._][\\w\\.]*)",
355
+ name: "meta.class.coffee"
356
+ },
357
+ {
358
+ captures: {
359
+ "1": {
360
+ name: "storage.type.class.coffee"
361
+ },
362
+ "2": {
363
+ name: "entity.name.type.class.coffee"
364
+ },
365
+ "3": {
366
+ name: "keyword.control.inheritance.coffee"
367
+ },
368
+ "4": {
369
+ name: "entity.other.inherited-class.coffee"
370
+ }
371
+ },
372
+ match: "(?<=\\s|^|\\[|\\()(class\\b)\\s+(@?[a-zA-Z\\$_][\\w\\.]*)?(?:\\s+(extends)\\s+(@?[a-zA-Z\\$\\._][\\w\\.]*))?",
373
+ name: "meta.class.coffee"
374
+ },
375
+ {
376
+ match: "\\b(debugger|\\\\)\\b",
377
+ name: "keyword.other.coffee"
378
+ },
379
+ {
380
+ match: "\\b(Array|ArrayBuffer|Blob|Boolean|Date|document|Function|Int(8|16|32|64)Array|Math|Map|Number|Object|Proxy|RegExp|Set|String|WeakMap|window|Uint(8|16|32|64)Array|XMLHttpRequest)\\b",
381
+ name: "support.class.coffee"
382
+ },
383
+ {
384
+ match: "\\b(console)\\b",
385
+ name: "entity.name.type.object.coffee"
386
+ },
387
+ {
388
+ match: "((?<=console\\.)(debug|warn|info|log|error|time|timeEnd|assert))\\b",
389
+ name: "support.function.console.coffee"
390
+ },
391
+ {
392
+ match: "((?<=\\.)(apply|call|concat|every|filter|forEach|from|hasOwnProperty|indexOf|isPrototypeOf|join|lastIndexOf|map|of|pop|propertyIsEnumerable|push|reduce(Right)?|reverse|shift|slice|some|sort|splice|to(Locale)?String|unshift|valueOf))\\b",
393
+ name: "support.function.method.array.coffee"
394
+ },
395
+ {
396
+ match: "((?<=Array\\.)(isArray))\\b",
397
+ name: "support.function.static.array.coffee"
398
+ },
399
+ {
400
+ match: "((?<=Object\\.)(create|definePropert(ies|y)|freeze|getOwnProperty(Descriptors?|Names)|getProperty(Descriptor|Names)|getPrototypeOf|is(Extensible|Frozen|Sealed)?|isnt|keys|preventExtensions|seal))\\b",
401
+ name: "support.function.static.object.coffee"
402
+ },
403
+ {
404
+ match: "((?<=Math\\.)(abs|acos|acosh|asin|asinh|atan|atan2|atanh|ceil|cos|cosh|exp|expm1|floor|hypot|log|log10|log1p|log2|max|min|pow|random|round|sign|sin|sinh|sqrt|tan|tanh|trunc))\\b",
405
+ name: "support.function.static.math.coffee"
406
+ },
407
+ {
408
+ match: "((?<=Number\\.)(is(Finite|Integer|NaN)|toInteger))\\b",
409
+ name: "support.function.static.number.coffee"
410
+ },
411
+ {
412
+ match: "(?<!\\.)\\b(module|exports|__filename|__dirname|global|process)(?!\\s*:)\\b",
413
+ name: "support.variable.coffee"
414
+ },
415
+ {
416
+ match: "\\b(Infinity|NaN|undefined)\\b",
417
+ name: "constant.language.coffee"
418
+ },
419
+ {
420
+ include: "#operators"
421
+ },
422
+ {
423
+ include: "#method_calls"
424
+ },
425
+ {
426
+ include: "#function_calls"
427
+ },
428
+ {
429
+ include: "#numbers"
430
+ },
431
+ {
432
+ include: "#objects"
433
+ },
434
+ {
435
+ include: "#properties"
436
+ },
437
+ {
438
+ match: "::",
439
+ name: "keyword.operator.prototype.coffee"
440
+ },
441
+ {
442
+ match: "(?<!\\$)\\b[0-9]+[\\w$]*",
443
+ name: "invalid.illegal.identifier.coffee"
444
+ },
445
+ {
446
+ match: ";",
447
+ name: "punctuation.terminator.statement.coffee"
448
+ },
449
+ {
450
+ match: ",",
451
+ name: "punctuation.separator.delimiter.coffee"
452
+ },
453
+ {
454
+ begin: "{",
455
+ beginCaptures: {
456
+ "0": {
457
+ name: "meta.brace.curly.coffee"
458
+ }
459
+ },
460
+ end: "}",
461
+ endCaptures: {
462
+ "0": {
463
+ name: "meta.brace.curly.coffee"
464
+ }
465
+ },
466
+ patterns: [
467
+ {
468
+ include: "$self"
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ begin: "\\[",
474
+ beginCaptures: {
475
+ "0": {
476
+ name: "punctuation.definition.array.begin.bracket.square.coffee"
477
+ }
478
+ },
479
+ end: "\\]",
480
+ endCaptures: {
481
+ "0": {
482
+ name: "punctuation.definition.array.end.bracket.square.coffee"
483
+ }
484
+ },
485
+ patterns: [
486
+ {
487
+ match: "(?<!\\.)\\.{3}",
488
+ name: "keyword.operator.slice.exclusive.coffee"
489
+ },
490
+ {
491
+ match: "(?<!\\.)\\.{2}",
492
+ name: "keyword.operator.slice.inclusive.coffee"
493
+ },
494
+ {
495
+ include: "$self"
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ begin: "\\(",
501
+ beginCaptures: {
502
+ "0": {
503
+ name: "meta.brace.round.coffee"
504
+ }
505
+ },
506
+ end: "\\)",
507
+ endCaptures: {
508
+ "0": {
509
+ name: "meta.brace.round.coffee"
510
+ }
511
+ },
512
+ patterns: [
513
+ {
514
+ include: "$self"
515
+ }
516
+ ]
517
+ },
518
+ {
519
+ include: "#instance_variable"
520
+ },
521
+ {
522
+ include: "#single_quoted_string"
523
+ },
524
+ {
525
+ include: "#double_quoted_string"
526
+ }
527
+ ];
528
+ var repository = {
529
+ "arguments": {
530
+ patterns: [
531
+ {
532
+ begin: "\\(",
533
+ beginCaptures: {
534
+ "0": {
535
+ name: "punctuation.definition.arguments.begin.bracket.round.coffee"
536
+ }
537
+ },
538
+ end: "\\)",
539
+ endCaptures: {
540
+ "0": {
541
+ name: "punctuation.definition.arguments.end.bracket.round.coffee"
542
+ }
543
+ },
544
+ name: "meta.arguments.coffee",
545
+ patterns: [
546
+ {
547
+ include: "$self"
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ begin: "(?=(@|@?[\\w$]+|[=-]>|\\-\\d|\\[|{|\"|'))",
553
+ end: "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*(}|\\]|\\)|#|$))",
554
+ name: "meta.arguments.coffee",
555
+ patterns: [
556
+ {
557
+ include: "$self"
558
+ }
559
+ ]
560
+ }
561
+ ]
562
+ },
563
+ double_quoted_string: {
564
+ patterns: [
565
+ {
566
+ begin: "\"",
567
+ beginCaptures: {
568
+ "0": {
569
+ name: "punctuation.definition.string.begin.coffee"
570
+ }
571
+ },
572
+ end: "\"",
573
+ endCaptures: {
574
+ "0": {
575
+ name: "punctuation.definition.string.end.coffee"
576
+ }
577
+ },
578
+ name: "string.quoted.double.coffee",
579
+ patterns: [
580
+ {
581
+ captures: {
582
+ "1": {
583
+ name: "punctuation.definition.escape.backslash.coffee"
584
+ }
585
+ },
586
+ match: "(\\\\)(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
587
+ name: "constant.character.escape.backslash.coffee"
588
+ },
589
+ {
590
+ include: "#interpolated_coffee"
591
+ }
592
+ ]
593
+ }
594
+ ]
595
+ },
596
+ function_calls: {
597
+ patterns: [
598
+ {
599
+ begin: "(@)?([\\w$]+)(?=\\()",
600
+ beginCaptures: {
601
+ "1": {
602
+ name: "variable.other.readwrite.instance.coffee"
603
+ },
604
+ "2": {
605
+ patterns: [
606
+ {
607
+ include: "#function_names"
608
+ }
609
+ ]
610
+ }
611
+ },
612
+ end: "(?<=\\))",
613
+ name: "meta.function-call.coffee",
614
+ patterns: [
615
+ {
616
+ include: "#arguments"
617
+ }
618
+ ]
619
+ },
620
+ {
621
+ begin: "(?x)\n(@)?([\\w$]+)\n\\s*\n(?=\\s+(?!(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))(?=(@?[\\w$]+|[=-]>|\\-\\d|\\[|{|\"|')))",
622
+ beginCaptures: {
623
+ "1": {
624
+ name: "variable.other.readwrite.instance.coffee"
625
+ },
626
+ "2": {
627
+ patterns: [
628
+ {
629
+ include: "#function_names"
630
+ }
631
+ ]
632
+ }
633
+ },
634
+ end: "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*(}|\\]|\\)|#|$))",
635
+ name: "meta.function-call.coffee",
636
+ patterns: [
637
+ {
638
+ include: "#arguments"
639
+ }
640
+ ]
641
+ }
642
+ ]
643
+ },
644
+ function_names: {
645
+ patterns: [
646
+ {
647
+ match: "(?x)\n\\b(isNaN|isFinite|eval|uneval|parseInt|parseFloat|decodeURI|\ndecodeURIComponent|encodeURI|encodeURIComponent|escape|unescape|\nrequire|set(Interval|Timeout)|clear(Interval|Timeout))\\b",
648
+ name: "support.function.coffee"
649
+ },
650
+ {
651
+ match: "[a-zA-Z_$][\\w$]*",
652
+ name: "entity.name.function.coffee"
653
+ },
654
+ {
655
+ match: "\\d[\\w$]*",
656
+ name: "invalid.illegal.identifier.coffee"
657
+ }
658
+ ]
659
+ },
660
+ function_params: {
661
+ patterns: [
662
+ {
663
+ begin: "\\(",
664
+ beginCaptures: {
665
+ "0": {
666
+ name: "punctuation.definition.parameters.begin.bracket.round.coffee"
667
+ }
668
+ },
669
+ end: "\\)",
670
+ endCaptures: {
671
+ "0": {
672
+ name: "punctuation.definition.parameters.end.bracket.round.coffee"
673
+ }
674
+ },
675
+ name: "meta.parameters.coffee",
676
+ patterns: [
677
+ {
678
+ match: "([a-zA-Z_$][\\w$]*)(\\.\\.\\.)?",
679
+ captures: {
680
+ "1": {
681
+ name: "variable.parameter.function.coffee"
682
+ },
683
+ "2": {
684
+ name: "keyword.operator.splat.coffee"
685
+ }
686
+ }
687
+ },
688
+ {
689
+ match: "(@(?:[a-zA-Z_$][\\w$]*)?)(\\.\\.\\.)?",
690
+ captures: {
691
+ "1": {
692
+ name: "variable.parameter.function.readwrite.instance.coffee"
693
+ },
694
+ "2": {
695
+ name: "keyword.operator.splat.coffee"
696
+ }
697
+ }
698
+ },
699
+ {
700
+ include: "$self"
701
+ }
702
+ ]
703
+ }
704
+ ]
705
+ },
706
+ embedded_comment: {
707
+ patterns: [
708
+ {
709
+ captures: {
710
+ "1": {
711
+ name: "punctuation.definition.comment.coffee"
712
+ }
713
+ },
714
+ match: "(?<!\\\\)(#).*$\\n?",
715
+ name: "comment.line.number-sign.coffee"
716
+ }
717
+ ]
718
+ },
719
+ instance_variable: {
720
+ patterns: [
721
+ {
722
+ match: "(@)([a-zA-Z_\\$]\\w*)?",
723
+ name: "variable.other.readwrite.instance.coffee"
724
+ }
725
+ ]
726
+ },
727
+ interpolated_coffee: {
728
+ patterns: [
729
+ {
730
+ begin: "\\#\\{",
731
+ captures: {
732
+ "0": {
733
+ name: "punctuation.section.embedded.coffee"
734
+ }
735
+ },
736
+ end: "\\}",
737
+ name: "source.coffee.embedded.source",
738
+ patterns: [
739
+ {
740
+ include: "$self"
741
+ }
742
+ ]
743
+ }
744
+ ]
745
+ },
746
+ method_calls: {
747
+ patterns: [
748
+ {
749
+ begin: "(?:(\\.)|(::))\\s*([\\w$]+)\\s*(?=\\()",
750
+ beginCaptures: {
751
+ "1": {
752
+ name: "punctuation.separator.method.period.coffee"
753
+ },
754
+ "2": {
755
+ name: "keyword.operator.prototype.coffee"
756
+ },
757
+ "3": {
758
+ patterns: [
759
+ {
760
+ include: "#method_names"
761
+ }
762
+ ]
763
+ }
764
+ },
765
+ end: "(?<=\\))",
766
+ name: "meta.method-call.coffee",
767
+ patterns: [
768
+ {
769
+ include: "#arguments"
770
+ }
771
+ ]
772
+ },
773
+ {
774
+ begin: "(?:(\\.)|(::))\\s*([\\w$]+)\\s*(?=\\s+(?!(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))(?=(@|@?[\\w$]+|[=-]>|\\-\\d|\\[|{|\"|')))",
775
+ beginCaptures: {
776
+ "1": {
777
+ name: "punctuation.separator.method.period.coffee"
778
+ },
779
+ "2": {
780
+ name: "keyword.operator.prototype.coffee"
781
+ },
782
+ "3": {
783
+ patterns: [
784
+ {
785
+ include: "#method_names"
786
+ }
787
+ ]
788
+ }
789
+ },
790
+ end: "(?=\\s*(?<![\\w$])(of|in|then|is|isnt|and|or|for|else|when|if|unless|by|instanceof)(?![\\w$]))|(?=\\s*(}|\\]|\\)|#|$))",
791
+ name: "meta.method-call.coffee",
792
+ patterns: [
793
+ {
794
+ include: "#arguments"
795
+ }
796
+ ]
797
+ }
798
+ ]
799
+ },
800
+ method_names: {
801
+ patterns: [
802
+ {
803
+ match: "(?x)\n\\bon(Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|\nReadystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|\nBefore(cut|deactivate|unload|update|paste|print|editfocus|activate)|\nBlur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|\nChange|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|\nDatasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|\nDragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|\nErrorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)\\b",
804
+ name: "support.function.event-handler.coffee"
805
+ },
806
+ {
807
+ match: "(?x)\n\\b(shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|\nscrollByLines|scrollY|scrollTo|stop|strike|sizeToContent|sidebar|signText|sort|\nsup|sub|substr|substring|splice|split|send|set(Milliseconds|Seconds|Minutes|Hours|\nMonth|Year|FullYear|Date|UTC(Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|\nTime|Hotkeys|Cursor|ZOptions|Active|Resizable|RequestHeader)|search|slice|\nsavePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|concat|\ncontextual|confirm|compile|clear|captureEvents|call|createStyleSheet|createPopup|\ncreateEventObject|to(GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|\ntest|taint|taintEnabled|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|\nuntaint|unwatch|updateCommands|join|javaEnabled|pop|push|plugins.refresh|paddings|parse|\nprint|prompt|preference|enableExternalCapture|exec|execScript|valueOf|UTC|find|file|\nfileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|\nforward|fromCharCode|watch|link|load|lastIndexOf|anchor|attachEvent|atob|apply|alert|\nabort|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|\nreleaseCapture|releaseEvents|go|get(Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|\nTime|Date|TimezoneOffset|UTC(Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|\nAttention|Selection|ResponseHeader|AllResponseHeaders)|moveBy|moveBelow|moveTo|\nmoveToAbsolute|moveAbove|mergeAttributes|match|margins|btoa|big|bold|borderWidths|blink|back)\\b",
808
+ name: "support.function.coffee"
809
+ },
810
+ {
811
+ match: "(?x)\n\\b(acceptNode|add|addEventListener|addTextTrack|adoptNode|after|animate|append|\nappendChild|appendData|before|blur|canPlayType|captureStream|\ncaretPositionFromPoint|caretRangeFromPoint|checkValidity|clear|click|\ncloneContents|cloneNode|cloneRange|close|closest|collapse|\ncompareBoundaryPoints|compareDocumentPosition|comparePoint|contains|\nconvertPointFromNode|convertQuadFromNode|convertRectFromNode|createAttribute|\ncreateAttributeNS|createCaption|createCDATASection|createComment|\ncreateContextualFragment|createDocument|createDocumentFragment|\ncreateDocumentType|createElement|createElementNS|createEntityReference|\ncreateEvent|createExpression|createHTMLDocument|createNodeIterator|\ncreateNSResolver|createProcessingInstruction|createRange|createShadowRoot|\ncreateTBody|createTextNode|createTFoot|createTHead|createTreeWalker|delete|\ndeleteCaption|deleteCell|deleteContents|deleteData|deleteRow|deleteTFoot|\ndeleteTHead|detach|disconnect|dispatchEvent|elementFromPoint|elementsFromPoint|\nenableStyleSheetsForSet|entries|evaluate|execCommand|exitFullscreen|\nexitPointerLock|expand|extractContents|fastSeek|firstChild|focus|forEach|get|\ngetAll|getAnimations|getAttribute|getAttributeNames|getAttributeNode|\ngetAttributeNodeNS|getAttributeNS|getBoundingClientRect|getBoxQuads|\ngetClientRects|getContext|getDestinationInsertionPoints|getElementById|\ngetElementsByClassName|getElementsByName|getElementsByTagName|\ngetElementsByTagNameNS|getItem|getNamedItem|getSelection|getStartDate|\ngetVideoPlaybackQuality|has|hasAttribute|hasAttributeNS|hasAttributes|\nhasChildNodes|hasFeature|hasFocus|importNode|initEvent|insertAdjacentElement|\ninsertAdjacentHTML|insertAdjacentText|insertBefore|insertCell|insertData|\ninsertNode|insertRow|intersectsNode|isDefaultNamespace|isEqualNode|\nisPointInRange|isSameNode|item|key|keys|lastChild|load|lookupNamespaceURI|\nlookupPrefix|matches|move|moveAttribute|moveAttributeNode|moveChild|\nmoveNamedItem|namedItem|nextNode|nextSibling|normalize|observe|open|\nparentNode|pause|play|postMessage|prepend|preventDefault|previousNode|\npreviousSibling|probablySupportsContext|queryCommandEnabled|\nqueryCommandIndeterm|queryCommandState|queryCommandSupported|queryCommandValue|\nquerySelector|querySelectorAll|registerContentHandler|registerElement|\nregisterProtocolHandler|releaseCapture|releaseEvents|remove|removeAttribute|\nremoveAttributeNode|removeAttributeNS|removeChild|removeEventListener|\nremoveItem|replace|replaceChild|replaceData|replaceWith|reportValidity|\nrequestFullscreen|requestPointerLock|reset|scroll|scrollBy|scrollIntoView|\nscrollTo|seekToNextFrame|select|selectNode|selectNodeContents|set|setAttribute|\nsetAttributeNode|setAttributeNodeNS|setAttributeNS|setCapture|\nsetCustomValidity|setEnd|setEndAfter|setEndBefore|setItem|setNamedItem|\nsetRangeText|setSelectionRange|setSinkId|setStart|setStartAfter|setStartBefore|\nslice|splitText|stepDown|stepUp|stopImmediatePropagation|stopPropagation|\nsubmit|substringData|supports|surroundContents|takeRecords|terminate|toBlob|\ntoDataURL|toggle|toString|values|write|writeln)\\b",
812
+ name: "support.function.dom.coffee"
813
+ },
814
+ {
815
+ match: "[a-zA-Z_$][\\w$]*",
816
+ name: "entity.name.function.coffee"
817
+ },
818
+ {
819
+ match: "\\d[\\w$]*",
820
+ name: "invalid.illegal.identifier.coffee"
821
+ }
822
+ ]
823
+ },
824
+ numbers: {
825
+ patterns: [
826
+ {
827
+ match: "\\b(?<!\\$)0(x|X)[0-9a-fA-F]+\\b(?!\\$)",
828
+ name: "constant.numeric.hex.coffee"
829
+ },
830
+ {
831
+ match: "\\b(?<!\\$)0(b|B)[01]+\\b(?!\\$)",
832
+ name: "constant.numeric.binary.coffee"
833
+ },
834
+ {
835
+ match: "\\b(?<!\\$)0(o|O)?[0-7]+\\b(?!\\$)",
836
+ name: "constant.numeric.octal.coffee"
837
+ },
838
+ {
839
+ match: "(?x)\n(?<!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)| # 1.E+3\n (?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # .1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+(?=\\.{2,3}))| # 1 followed by a slice\n (?:\\b[0-9]+(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9]+\\b)| # .1\n (?:\\b[0-9]+\\b(?!\\.)) # 1\n)(?!\\$)",
840
+ captures: {
841
+ "0": {
842
+ name: "constant.numeric.decimal.coffee"
843
+ },
844
+ "1": {
845
+ name: "punctuation.separator.decimal.period.coffee"
846
+ },
847
+ "2": {
848
+ name: "punctuation.separator.decimal.period.coffee"
849
+ },
850
+ "3": {
851
+ name: "punctuation.separator.decimal.period.coffee"
852
+ },
853
+ "4": {
854
+ name: "punctuation.separator.decimal.period.coffee"
855
+ },
856
+ "5": {
857
+ name: "punctuation.separator.decimal.period.coffee"
858
+ },
859
+ "6": {
860
+ name: "punctuation.separator.decimal.period.coffee"
861
+ }
862
+ }
863
+ }
864
+ ]
865
+ },
866
+ objects: {
867
+ patterns: [
868
+ {
869
+ match: "[A-Z][A-Z0-9_$]*(?=\\s*\\??(\\.\\s*[a-zA-Z_$]\\w*|::))",
870
+ name: "constant.other.object.coffee"
871
+ },
872
+ {
873
+ match: "[a-zA-Z_$][\\w$]*(?=\\s*\\??(\\.\\s*[a-zA-Z_$]\\w*|::))",
874
+ name: "variable.other.object.coffee"
875
+ }
876
+ ]
877
+ },
878
+ operators: {
879
+ patterns: [
880
+ {
881
+ match: "(?:([a-zA-Z$_][\\w$]*)?\\s+|(?<![\\w$]))(and=|or=)",
882
+ captures: {
883
+ "1": {
884
+ name: "variable.assignment.coffee"
885
+ },
886
+ "2": {
887
+ name: "keyword.operator.assignment.compound.coffee"
888
+ }
889
+ }
890
+ },
891
+ {
892
+ match: "([a-zA-Z$_][\\w$]*)?\\s*(%=|\\+=|-=|\\*=|&&=|\\|\\|=|\\?=|(?<!\\()/=)",
893
+ captures: {
894
+ "1": {
895
+ name: "variable.assignment.coffee"
896
+ },
897
+ "2": {
898
+ name: "keyword.operator.assignment.compound.coffee"
899
+ }
900
+ }
901
+ },
902
+ {
903
+ match: "([a-zA-Z$_][\\w$]*)?\\s*(&=|\\^=|<<=|>>=|>>>=|\\|=)",
904
+ captures: {
905
+ "1": {
906
+ name: "variable.assignment.coffee"
907
+ },
908
+ "2": {
909
+ name: "keyword.operator.assignment.compound.bitwise.coffee"
910
+ }
911
+ }
912
+ },
913
+ {
914
+ match: "<<|>>>|>>",
915
+ name: "keyword.operator.bitwise.shift.coffee"
916
+ },
917
+ {
918
+ match: "!=|<=|>=|==|<|>",
919
+ name: "keyword.operator.comparison.coffee"
920
+ },
921
+ {
922
+ match: "&&|!|\\|\\|",
923
+ name: "keyword.operator.logical.coffee"
924
+ },
925
+ {
926
+ match: "&|\\||\\^|~",
927
+ name: "keyword.operator.bitwise.coffee"
928
+ },
929
+ {
930
+ match: "([a-zA-Z$_][\\w$]*)?\\s*(=|:(?!:))(?![>=])",
931
+ captures: {
932
+ "1": {
933
+ name: "variable.assignment.coffee"
934
+ },
935
+ "2": {
936
+ name: "keyword.operator.assignment.coffee"
937
+ }
938
+ }
939
+ },
940
+ {
941
+ match: "--",
942
+ name: "keyword.operator.decrement.coffee"
943
+ },
944
+ {
945
+ match: "\\+\\+",
946
+ name: "keyword.operator.increment.coffee"
947
+ },
948
+ {
949
+ match: "\\.\\.\\.",
950
+ name: "keyword.operator.splat.coffee"
951
+ },
952
+ {
953
+ match: "\\?",
954
+ name: "keyword.operator.existential.coffee"
955
+ },
956
+ {
957
+ match: "%|\\*|/|-|\\+",
958
+ name: "keyword.operator.coffee"
959
+ },
960
+ {
961
+ match: "(?x)\n\\b(?<![\\.\\$])\n(?:\n (and|or|not) # logical\n |\n (is|isnt) # comparison\n)\n(?!\\s*:)\\b",
962
+ captures: {
963
+ "1": {
964
+ name: "keyword.operator.logical.coffee"
965
+ },
966
+ "2": {
967
+ name: "keyword.operator.comparison.coffee"
968
+ }
969
+ }
970
+ }
971
+ ]
972
+ },
973
+ properties: {
974
+ patterns: [
975
+ {
976
+ match: "(?:(\\.)|(::))\\s*([A-Z][A-Z0-9_$]*\\b\\$*)(?=\\s*\\??(\\.\\s*[a-zA-Z_$]\\w*|::))",
977
+ captures: {
978
+ "1": {
979
+ name: "punctuation.separator.property.period.coffee"
980
+ },
981
+ "2": {
982
+ name: "keyword.operator.prototype.coffee"
983
+ },
984
+ "3": {
985
+ name: "constant.other.object.property.coffee"
986
+ }
987
+ }
988
+ },
989
+ {
990
+ match: "(?:(\\.)|(::))\\s*(\\$*[a-zA-Z_$][\\w$]*)(?=\\s*\\??(\\.\\s*[a-zA-Z_$]\\w*|::))",
991
+ captures: {
992
+ "1": {
993
+ name: "punctuation.separator.property.period.coffee"
994
+ },
995
+ "2": {
996
+ name: "keyword.operator.prototype.coffee"
997
+ },
998
+ "3": {
999
+ name: "variable.other.object.property.coffee"
1000
+ }
1001
+ }
1002
+ },
1003
+ {
1004
+ match: "(?:(\\.)|(::))\\s*([A-Z][A-Z0-9_$]*\\b\\$*)",
1005
+ captures: {
1006
+ "1": {
1007
+ name: "punctuation.separator.property.period.coffee"
1008
+ },
1009
+ "2": {
1010
+ name: "keyword.operator.prototype.coffee"
1011
+ },
1012
+ "3": {
1013
+ name: "constant.other.property.coffee"
1014
+ }
1015
+ }
1016
+ },
1017
+ {
1018
+ match: "(?:(\\.)|(::))\\s*(\\$*[a-zA-Z_$][\\w$]*)",
1019
+ captures: {
1020
+ "1": {
1021
+ name: "punctuation.separator.property.period.coffee"
1022
+ },
1023
+ "2": {
1024
+ name: "keyword.operator.prototype.coffee"
1025
+ },
1026
+ "3": {
1027
+ name: "variable.other.property.coffee"
1028
+ }
1029
+ }
1030
+ },
1031
+ {
1032
+ match: "(?:(\\.)|(::))\\s*([0-9][\\w$]*)",
1033
+ captures: {
1034
+ "1": {
1035
+ name: "punctuation.separator.property.period.coffee"
1036
+ },
1037
+ "2": {
1038
+ name: "keyword.operator.prototype.coffee"
1039
+ },
1040
+ "3": {
1041
+ name: "invalid.illegal.identifier.coffee"
1042
+ }
1043
+ }
1044
+ }
1045
+ ]
1046
+ },
1047
+ single_quoted_string: {
1048
+ patterns: [
1049
+ {
1050
+ begin: "'",
1051
+ beginCaptures: {
1052
+ "0": {
1053
+ name: "punctuation.definition.string.begin.coffee"
1054
+ }
1055
+ },
1056
+ end: "'",
1057
+ endCaptures: {
1058
+ "0": {
1059
+ name: "punctuation.definition.string.end.coffee"
1060
+ }
1061
+ },
1062
+ name: "string.quoted.single.coffee",
1063
+ patterns: [
1064
+ {
1065
+ captures: {
1066
+ "1": {
1067
+ name: "punctuation.definition.escape.backslash.coffee"
1068
+ }
1069
+ },
1070
+ match: "(\\\\)(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
1071
+ name: "constant.character.escape.backslash.coffee"
1072
+ }
1073
+ ]
1074
+ }
1075
+ ]
1076
+ },
1077
+ "regex-character-class": {
1078
+ patterns: [
1079
+ {
1080
+ match: "\\\\[wWsSdD]|\\.",
1081
+ name: "constant.character.character-class.regexp"
1082
+ },
1083
+ {
1084
+ match: "\\\\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4})",
1085
+ name: "constant.character.numeric.regexp"
1086
+ },
1087
+ {
1088
+ match: "\\\\c[A-Z]",
1089
+ name: "constant.character.control.regexp"
1090
+ },
1091
+ {
1092
+ match: "\\\\.",
1093
+ name: "constant.character.escape.backslash.regexp"
1094
+ }
1095
+ ]
1096
+ },
1097
+ heregexp: {
1098
+ patterns: [
1099
+ {
1100
+ match: "\\\\[bB]|\\^|\\$",
1101
+ name: "keyword.control.anchor.regexp"
1102
+ },
1103
+ {
1104
+ match: "\\\\[1-9]\\d*",
1105
+ name: "keyword.other.back-reference.regexp"
1106
+ },
1107
+ {
1108
+ match: "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??",
1109
+ name: "keyword.operator.quantifier.regexp"
1110
+ },
1111
+ {
1112
+ match: "\\|",
1113
+ name: "keyword.operator.or.regexp"
1114
+ },
1115
+ {
1116
+ begin: "(\\()((\\?=)|(\\?!))",
1117
+ beginCaptures: {
1118
+ "1": {
1119
+ name: "punctuation.definition.group.regexp"
1120
+ },
1121
+ "3": {
1122
+ name: "meta.assertion.look-ahead.regexp"
1123
+ },
1124
+ "4": {
1125
+ name: "meta.assertion.negative-look-ahead.regexp"
1126
+ }
1127
+ },
1128
+ end: "(\\))",
1129
+ endCaptures: {
1130
+ "1": {
1131
+ name: "punctuation.definition.group.regexp"
1132
+ }
1133
+ },
1134
+ name: "meta.group.assertion.regexp",
1135
+ patterns: [
1136
+ {
1137
+ include: "#heregexp"
1138
+ }
1139
+ ]
1140
+ },
1141
+ {
1142
+ begin: "\\((\\?:)?",
1143
+ beginCaptures: {
1144
+ "0": {
1145
+ name: "punctuation.definition.group.regexp"
1146
+ }
1147
+ },
1148
+ end: "\\)",
1149
+ endCaptures: {
1150
+ "0": {
1151
+ name: "punctuation.definition.group.regexp"
1152
+ }
1153
+ },
1154
+ name: "meta.group.regexp",
1155
+ patterns: [
1156
+ {
1157
+ include: "#heregexp"
1158
+ }
1159
+ ]
1160
+ },
1161
+ {
1162
+ begin: "(\\[)(\\^)?",
1163
+ beginCaptures: {
1164
+ "1": {
1165
+ name: "punctuation.definition.character-class.regexp"
1166
+ },
1167
+ "2": {
1168
+ name: "keyword.operator.negation.regexp"
1169
+ }
1170
+ },
1171
+ end: "(\\])",
1172
+ endCaptures: {
1173
+ "1": {
1174
+ name: "punctuation.definition.character-class.regexp"
1175
+ }
1176
+ },
1177
+ name: "constant.other.character-class.set.regexp",
1178
+ patterns: [
1179
+ {
1180
+ captures: {
1181
+ "1": {
1182
+ name: "constant.character.numeric.regexp"
1183
+ },
1184
+ "2": {
1185
+ name: "constant.character.control.regexp"
1186
+ },
1187
+ "3": {
1188
+ name: "constant.character.escape.backslash.regexp"
1189
+ },
1190
+ "4": {
1191
+ name: "constant.character.numeric.regexp"
1192
+ },
1193
+ "5": {
1194
+ name: "constant.character.control.regexp"
1195
+ },
1196
+ "6": {
1197
+ name: "constant.character.escape.backslash.regexp"
1198
+ }
1199
+ },
1200
+ match: "(?:.|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))",
1201
+ name: "constant.other.character-class.range.regexp"
1202
+ },
1203
+ {
1204
+ include: "#regex-character-class"
1205
+ }
1206
+ ]
1207
+ },
1208
+ {
1209
+ include: "#regex-character-class"
1210
+ },
1211
+ {
1212
+ include: "#interpolated_coffee"
1213
+ },
1214
+ {
1215
+ include: "#embedded_comment"
1216
+ }
1217
+ ]
1218
+ },
1219
+ jsx: {
1220
+ patterns: [
1221
+ {
1222
+ include: "#jsx-tag"
1223
+ },
1224
+ {
1225
+ include: "#jsx-end-tag"
1226
+ }
1227
+ ]
1228
+ },
1229
+ "jsx-expression": {
1230
+ begin: "{",
1231
+ beginCaptures: {
1232
+ "0": {
1233
+ name: "meta.brace.curly.coffee"
1234
+ }
1235
+ },
1236
+ end: "}",
1237
+ endCaptures: {
1238
+ "0": {
1239
+ name: "meta.brace.curly.coffee"
1240
+ }
1241
+ },
1242
+ patterns: [
1243
+ {
1244
+ include: "#double_quoted_string"
1245
+ },
1246
+ {
1247
+ include: "$self"
1248
+ }
1249
+ ]
1250
+ },
1251
+ "jsx-attribute": {
1252
+ patterns: [
1253
+ {
1254
+ captures: {
1255
+ "1": {
1256
+ name: "entity.other.attribute-name.coffee"
1257
+ },
1258
+ "2": {
1259
+ name: "keyword.operator.assignment.coffee"
1260
+ }
1261
+ },
1262
+ match: "(?:^|\\s+)([-\\w.]+)\\s*(=)"
1263
+ },
1264
+ {
1265
+ include: "#double_quoted_string"
1266
+ },
1267
+ {
1268
+ include: "#single_quoted_string"
1269
+ },
1270
+ {
1271
+ include: "#jsx-expression"
1272
+ }
1273
+ ]
1274
+ },
1275
+ "jsx-tag": {
1276
+ patterns: [
1277
+ {
1278
+ begin: "(<)([-\\w\\.]+)",
1279
+ beginCaptures: {
1280
+ "1": {
1281
+ name: "punctuation.definition.tag.coffee"
1282
+ },
1283
+ "2": {
1284
+ name: "entity.name.tag.coffee"
1285
+ }
1286
+ },
1287
+ end: "(/?>)",
1288
+ name: "meta.tag.coffee",
1289
+ patterns: [
1290
+ {
1291
+ include: "#jsx-attribute"
1292
+ }
1293
+ ]
1294
+ }
1295
+ ]
1296
+ },
1297
+ "jsx-end-tag": {
1298
+ patterns: [
1299
+ {
1300
+ begin: "(</)([-\\w\\.]+)",
1301
+ beginCaptures: {
1302
+ "1": {
1303
+ name: "punctuation.definition.tag.coffee"
1304
+ },
1305
+ "2": {
1306
+ name: "entity.name.tag.coffee"
1307
+ }
1308
+ },
1309
+ end: "(/?>)",
1310
+ name: "meta.tag.coffee"
1311
+ }
1312
+ ]
1313
+ }
1314
+ };
1315
+ var coffeescript_tmLanguage = {
1316
+ information_for_contributors: information_for_contributors,
1317
+ version: version,
1318
+ name: name,
1319
+ scopeName: scopeName,
1320
+ patterns: patterns,
1321
+ repository: repository
1322
+ };
1323
+
1324
+ export { coffeescript_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };