chamba 0.7.0 → 0.8.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 (120) hide show
  1. package/LICENSE +53 -14
  2. package/README.md +28 -8
  3. package/dist/commands/advanced.js +7 -278
  4. package/dist/commands/dev.js +11 -612
  5. package/dist/commands/doctor.js +1 -29
  6. package/dist/commands/menu.js +1 -80
  7. package/dist/commands/onboard.js +6 -230
  8. package/dist/commands/settings.js +15 -349
  9. package/dist/lib/agent-commands.js +2 -0
  10. package/dist/lib/agent-context.js +6 -210
  11. package/dist/lib/browser.js +1 -40
  12. package/dist/lib/chamba-yaml.js +10 -191
  13. package/dist/lib/constants.js +1 -125
  14. package/dist/lib/dockerfile-builder.js +41 -261
  15. package/dist/lib/env.js +2 -78
  16. package/dist/lib/git-env.js +1 -21
  17. package/dist/lib/global-config.js +4 -66
  18. package/dist/lib/pnpm-store.js +1 -19
  19. package/dist/lib/ports.js +1 -210
  20. package/dist/lib/safe-rm.js +1 -36
  21. package/dist/lib/sessions.js +2 -34
  22. package/dist/lib/shadows.js +1 -176
  23. package/dist/lib/skills.js +2 -0
  24. package/dist/lib/templates.js +1 -0
  25. package/dist/lib/webterm.js +1 -305
  26. package/dist/lib/workspace-identity.js +4 -260
  27. package/package.json +4 -4
  28. package/templates/Dockerfile +12 -19
  29. package/templates/claude-statusline.sh +5 -7
  30. package/templates/context/baseline.md +2 -0
  31. package/templates/pane-apps/client/assets/c-BNa-DeUl.json +3552 -0
  32. package/templates/pane-apps/client/assets/cpp-B-T4NRoH.json +20239 -0
  33. package/templates/pane-apps/client/assets/csharp-BbxHChhA.json +6010 -0
  34. package/templates/pane-apps/client/assets/css-CWCxuwmz.json +1860 -0
  35. package/templates/pane-apps/client/assets/diff-B-2N89g8.json +154 -0
  36. package/templates/pane-apps/client/assets/docker-DWTvYW26.json +103 -0
  37. package/templates/pane-apps/client/assets/files-D0nJgFAA.js +12 -0
  38. package/templates/pane-apps/client/assets/files-h0K1vZyQ.css +1 -0
  39. package/templates/pane-apps/client/assets/go-B2hyYeNg.json +3156 -0
  40. package/templates/pane-apps/client/assets/graphql-Z6Id2aNO.json +1292 -0
  41. package/templates/pane-apps/client/assets/html-BtzvlIfu.json +2627 -0
  42. package/templates/pane-apps/client/assets/ini-Bn3Twap1.json +108 -0
  43. package/templates/pane-apps/client/assets/java-C7t2dwLO.json +1885 -0
  44. package/templates/pane-apps/client/assets/javascript-DuC2v0C0.json +5996 -0
  45. package/templates/pane-apps/client/assets/json-CwdkWeV5.json +206 -0
  46. package/templates/pane-apps/client/assets/jsonc-MYWDbTU3.json +206 -0
  47. package/templates/pane-apps/client/assets/jsx-Cn8EZuIC.json +5996 -0
  48. package/templates/pane-apps/client/assets/kotlin-CFNOz1gw.json +580 -0
  49. package/templates/pane-apps/client/assets/make-BVnlFCcl.json +629 -0
  50. package/templates/pane-apps/client/assets/markdown-B4Xk2WM_.json +3263 -0
  51. package/templates/pane-apps/client/assets/php-CAQzQmmI.json +4188 -0
  52. package/templates/pane-apps/client/assets/python-CYQee8m4.json +4174 -0
  53. package/templates/pane-apps/client/assets/reviews-BsoGZ35r.css +1 -0
  54. package/templates/pane-apps/client/assets/reviews-iW0Mbn4e.js +153 -0
  55. package/templates/pane-apps/client/assets/ruby-D7R58tus.json +3114 -0
  56. package/templates/pane-apps/client/assets/rust-BFBbFiei.json +1103 -0
  57. package/templates/pane-apps/client/assets/scss-TQRhBkPG.json +1874 -0
  58. package/templates/pane-apps/client/assets/shellscript-DieAkC4W.json +2375 -0
  59. package/templates/pane-apps/client/assets/specs-D9z3neR-.js +13 -0
  60. package/templates/pane-apps/client/assets/sql-Bxd030LV.json +634 -0
  61. package/templates/pane-apps/client/assets/toml-ChrKGzsV.json +430 -0
  62. package/templates/pane-apps/client/assets/tsx-D2e90MFw.json +5996 -0
  63. package/templates/pane-apps/client/assets/typescript-DonXQ_n1.json +5747 -0
  64. package/templates/pane-apps/client/assets/xml-B17r2RXF.json +382 -0
  65. package/templates/pane-apps/client/assets/yaml-CKn4h1zy.json +627 -0
  66. package/templates/pane-apps/client/reviews/index.html +15 -0
  67. package/templates/pane-apps/client/specs/index.html +3 -2
  68. package/templates/pane-apps/server/reviews.mjs +20 -0
  69. package/templates/pane-apps/server/specs.mjs +5 -1588
  70. package/templates/skills/chamba-statusline/SKILL.md +7 -19
  71. package/templates/skills/dx-review/SKILL.md +123 -0
  72. package/templates/skills/dx-review/references/acts.md +162 -0
  73. package/templates/skills/dx-spec/SKILL.md +223 -27
  74. package/templates/skills/dx-spec/references/principles-template.md +2 -0
  75. package/templates/skills/dx-spec/references/review-guide.md +4 -50
  76. package/templates/skills/dx-spec/references/spec-guide.md +24 -4
  77. package/templates/skills/dx-spec/references/stages.md +143 -58
  78. package/templates/skills/dx-spec-execute/SKILL.md +148 -35
  79. package/templates/startup.mjs +10 -4
  80. package/templates/tool-helper.sh +166 -0
  81. package/templates/webterm/README.md +60 -26
  82. package/templates/webterm/color.js +61 -0
  83. package/templates/webterm/config.js +35 -4
  84. package/templates/webterm/context/claude.md +0 -1
  85. package/templates/webterm/public/app/alerts.js +4 -4
  86. package/templates/webterm/public/app/anchored.js +81 -0
  87. package/templates/webterm/public/app/connection.js +9 -0
  88. package/templates/webterm/public/app/dom.js +2 -0
  89. package/templates/webterm/public/app/frames.js +51 -17
  90. package/templates/webterm/public/app/main.js +22 -8
  91. package/templates/webterm/public/app/new-session.js +13 -41
  92. package/templates/webterm/public/app/palette.js +58 -0
  93. package/templates/webterm/public/app/pane-shape.js +167 -0
  94. package/templates/webterm/public/app/pane-shell.js +199 -134
  95. package/templates/webterm/public/app/pane.js +33 -24
  96. package/templates/webterm/public/app/reviews-host.js +15 -0
  97. package/templates/webterm/public/app/specs-host.js +12 -218
  98. package/templates/webterm/public/app/state.js +5 -0
  99. package/templates/webterm/public/app/tabs.js +6 -2
  100. package/templates/webterm/public/app/theme.js +75 -27
  101. package/templates/webterm/public/app/tool-host.js +302 -0
  102. package/templates/webterm/public/app/workspace-color.js +192 -0
  103. package/templates/webterm/public/index.html +17 -3
  104. package/templates/webterm/public/styles.css +143 -21
  105. package/templates/webterm/server.js +198 -150
  106. package/templates/webterm/tools/commands.js +61 -0
  107. package/templates/webterm/tools/index.js +25 -0
  108. package/templates/webterm/tools/mount.js +337 -0
  109. package/templates/webterm/tools/paths.js +34 -0
  110. package/templates/webterm/tools/reviews.js +133 -0
  111. package/templates/webterm/tools/specs.js +154 -0
  112. package/templates/webterm/typed-line.js +70 -7
  113. package/templates/context/context-usage.md +0 -1
  114. package/templates/context-usage.sh +0 -266
  115. package/templates/pane-apps/client/assets/specs-B1970L17.css +0 -1
  116. package/templates/pane-apps/client/assets/specs-cEee_SPn.js +0 -23
  117. package/templates/skills/dx-spec-config/SKILL.md +0 -313
  118. package/templates/skills/dx-spec-config/references/principles-template.md +0 -12
  119. package/templates/specs.sh +0 -106
  120. package/templates/webterm/specs.js +0 -358
@@ -0,0 +1,3114 @@
1
+ {
2
+ "displayName": "Ruby",
3
+ "name": "ruby",
4
+ "patterns": [
5
+ {
6
+ "captures": {
7
+ "1": {
8
+ "name": "keyword.control.class.ruby"
9
+ },
10
+ "11": {
11
+ "name": "punctuation.separator.namespace.ruby"
12
+ },
13
+ "2": {
14
+ "name": "entity.name.type.class.ruby"
15
+ },
16
+ "5": {
17
+ "name": "punctuation.separator.namespace.ruby"
18
+ },
19
+ "7": {
20
+ "name": "punctuation.separator.inheritance.ruby"
21
+ },
22
+ "8": {
23
+ "name": "entity.other.inherited-class.ruby"
24
+ }
25
+ },
26
+ "match": "\\b(class)\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)\\s*((<)\\s*(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*))?",
27
+ "name": "meta.class.ruby"
28
+ },
29
+ {
30
+ "captures": {
31
+ "1": {
32
+ "name": "keyword.control.module.ruby"
33
+ },
34
+ "2": {
35
+ "name": "entity.name.type.module.ruby"
36
+ },
37
+ "5": {
38
+ "name": "punctuation.separator.namespace.ruby"
39
+ }
40
+ },
41
+ "match": "\\b(module)\\s+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)",
42
+ "name": "meta.module.ruby"
43
+ },
44
+ {
45
+ "captures": {
46
+ "1": {
47
+ "name": "keyword.control.class.ruby"
48
+ },
49
+ "2": {
50
+ "name": "punctuation.separator.inheritance.ruby"
51
+ }
52
+ },
53
+ "match": "\\b(class)\\s*(<<)\\s*",
54
+ "name": "meta.class.ruby"
55
+ },
56
+ {
57
+ "match": "(?<!\\.)\\belse(\\s)+if\\b",
58
+ "name": "invalid.deprecated.ruby"
59
+ },
60
+ {
61
+ "captures": {
62
+ "1": {
63
+ "name": "variable.ruby"
64
+ },
65
+ "2": {
66
+ "name": "keyword.operator.assignment.augmented.ruby"
67
+ }
68
+ },
69
+ "match": "^\\s*([_a-z][0-9A-Z_a-z]*)\\s*((&&|\\|\\|)=)"
70
+ },
71
+ {
72
+ "captures": {
73
+ "1": {
74
+ "name": "keyword.control.ruby"
75
+ },
76
+ "3": {
77
+ "name": "variable.ruby"
78
+ },
79
+ "4": {
80
+ "name": "keyword.operator.assignment.augmented.ruby"
81
+ }
82
+ },
83
+ "match": "(?<!\\.)\\b(case|if|elsif|unless|until|while)\\b\\s*(\\()*?\\s*([_a-z][0-9A-Z_a-z]*)\\s*((&&|\\|\\|)=)"
84
+ },
85
+ {
86
+ "captures": {
87
+ "1": {
88
+ "name": "variable.ruby"
89
+ },
90
+ "2": {
91
+ "name": "keyword.operator.assignment.augmented.ruby"
92
+ }
93
+ },
94
+ "match": "^\\s*([_a-z][0-9A-Z_a-z]*)\\s*(([-%*+/]|\\*\\*|[\\&^|]|<<|>>)=)"
95
+ },
96
+ {
97
+ "captures": {
98
+ "1": {
99
+ "name": "keyword.control.ruby"
100
+ },
101
+ "3": {
102
+ "name": "variable.ruby"
103
+ },
104
+ "4": {
105
+ "name": "keyword.operator.assignment.augmented.ruby"
106
+ }
107
+ },
108
+ "match": "(?<!\\.)\\b(case|if|elsif|unless|until|while)\\b\\s*(\\()*?\\s*([_a-z][0-9A-Z_a-z]*)\\s*(([-%*+/]|\\*\\*|[\\&^|]|<<|>>)=)"
109
+ },
110
+ {
111
+ "captures": {
112
+ "1": {
113
+ "name": "variable.ruby"
114
+ }
115
+ },
116
+ "match": "^\\s*([_a-z][0-9A-Z_a-z]*)\\s*(?==[^=>])"
117
+ },
118
+ {
119
+ "captures": {
120
+ "1": {
121
+ "name": "keyword.control.ruby"
122
+ },
123
+ "3": {
124
+ "name": "variable.ruby"
125
+ }
126
+ },
127
+ "match": "(?<!\\.)\\b(case|if|elsif|unless|until|while)\\b\\s*(\\()*?\\s*([_a-z][0-9A-Z_a-z]*)\\s*=[^=>]"
128
+ },
129
+ {
130
+ "captures": {
131
+ "1": {
132
+ "name": "punctuation.definition.constant.hashkey.ruby"
133
+ }
134
+ },
135
+ "match": "(?>[A-Z_a-z]\\w*[!?]?)(:)(?!:)",
136
+ "name": "constant.language.symbol.hashkey.ruby"
137
+ },
138
+ {
139
+ "captures": {
140
+ "1": {
141
+ "name": "punctuation.definition.constant.ruby"
142
+ }
143
+ },
144
+ "match": "(?<!:)(:)(?>[A-Z_a-z]\\w*[!?]?)(?=\\s*=>)",
145
+ "name": "constant.language.symbol.hashkey.ruby"
146
+ },
147
+ {
148
+ "match": "(?<!\\.)\\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\\b(?![!?])",
149
+ "name": "keyword.control.ruby"
150
+ },
151
+ {
152
+ "match": "(?<!\\.)\\bdo\\b",
153
+ "name": "keyword.control.start-block.ruby"
154
+ },
155
+ {
156
+ "match": "(?<=\\{)(\\s+)",
157
+ "name": "meta.syntax.ruby.start-block"
158
+ },
159
+ {
160
+ "match": "(?<!\\.)\\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\\b(?![!?])|\\bdefined\\?|\\b(block_given|iterator)\\?",
161
+ "name": "keyword.control.pseudo-method.ruby"
162
+ },
163
+ {
164
+ "match": "\\bnil\\b(?![!?])",
165
+ "name": "constant.language.nil.ruby"
166
+ },
167
+ {
168
+ "match": "\\b(true|false)\\b(?![!?])",
169
+ "name": "constant.language.boolean.ruby"
170
+ },
171
+ {
172
+ "match": "\\b(__(FILE|LINE)__)\\b(?![!?])",
173
+ "name": "variable.language.ruby"
174
+ },
175
+ {
176
+ "match": "\\bself\\b(?![!?])",
177
+ "name": "variable.language.self.ruby"
178
+ },
179
+ {
180
+ "match": "\\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\\b(?![!?])",
181
+ "name": "keyword.other.special-method.ruby"
182
+ },
183
+ {
184
+ "begin": "\\b(?<!\\.|::)(require(?:|_relative))\\b(?![!?])",
185
+ "captures": {
186
+ "1": {
187
+ "name": "keyword.other.special-method.ruby"
188
+ }
189
+ },
190
+ "end": "$|(?=[#}])",
191
+ "name": "meta.require.ruby",
192
+ "patterns": [
193
+ {
194
+ "include": "$self"
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "captures": {
200
+ "1": {
201
+ "name": "punctuation.definition.variable.ruby"
202
+ }
203
+ },
204
+ "match": "(@)[A-Z_a-z]\\w*",
205
+ "name": "variable.other.readwrite.instance.ruby"
206
+ },
207
+ {
208
+ "captures": {
209
+ "1": {
210
+ "name": "punctuation.definition.variable.ruby"
211
+ }
212
+ },
213
+ "match": "(@@)[A-Z_a-z]\\w*",
214
+ "name": "variable.other.readwrite.class.ruby"
215
+ },
216
+ {
217
+ "captures": {
218
+ "1": {
219
+ "name": "punctuation.definition.variable.ruby"
220
+ }
221
+ },
222
+ "match": "(\\$)[A-Z_a-z]\\w*",
223
+ "name": "variable.other.readwrite.global.ruby"
224
+ },
225
+ {
226
+ "captures": {
227
+ "1": {
228
+ "name": "punctuation.definition.variable.ruby"
229
+ }
230
+ },
231
+ "match": "(\\$)([!\\&'+@`]|\\d+|[\"$*,./:-?\\\\_~]|-[0FIadilpv])",
232
+ "name": "variable.other.readwrite.global.pre-defined.ruby"
233
+ },
234
+ {
235
+ "begin": "\\b(ENV)\\[",
236
+ "beginCaptures": {
237
+ "1": {
238
+ "name": "variable.other.constant.ruby"
239
+ }
240
+ },
241
+ "end": "]",
242
+ "name": "meta.environment-variable.ruby",
243
+ "patterns": [
244
+ {
245
+ "include": "$self"
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "match": "\\b[A-Z]\\w*(?=((\\.|::)[A-Za-z]|\\[))",
251
+ "name": "support.class.ruby"
252
+ },
253
+ {
254
+ "match": "\\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|printf??|proc|putc|puts|rand|readlines??|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\\b(?![!?])|autoload\\?|exit!)",
255
+ "name": "support.function.kernel.ruby"
256
+ },
257
+ {
258
+ "match": "\\b[A-Z_]\\w*\\b",
259
+ "name": "variable.other.constant.ruby"
260
+ },
261
+ {
262
+ "begin": "(->)\\(",
263
+ "beginCaptures": {
264
+ "1": {
265
+ "name": "support.function.kernel.ruby"
266
+ }
267
+ },
268
+ "end": "\\)",
269
+ "patterns": [
270
+ {
271
+ "begin": "(?=[\\&*A-Z_a-z])",
272
+ "end": "(?=[),])",
273
+ "patterns": [
274
+ {
275
+ "include": "#method_parameters"
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "include": "#method_parameters"
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "begin": "(?=def\\b)(?<=^|\\s)(def)\\s+((?>[A-Z_a-z]\\w*(?>\\.|::))?(?>[A-Z_a-z]\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\&/`|]|\\*\\*?|=?~|[-+]@?|\\[]=?))\\s*(\\()",
286
+ "beginCaptures": {
287
+ "1": {
288
+ "name": "keyword.control.def.ruby"
289
+ },
290
+ "2": {
291
+ "name": "entity.name.function.ruby"
292
+ },
293
+ "3": {
294
+ "name": "punctuation.definition.parameters.ruby"
295
+ }
296
+ },
297
+ "end": "\\)",
298
+ "endCaptures": {
299
+ "0": {
300
+ "name": "punctuation.definition.parameters.ruby"
301
+ }
302
+ },
303
+ "name": "meta.function.method.with-arguments.ruby",
304
+ "patterns": [
305
+ {
306
+ "begin": "(?=[\\&*A-Z_a-z])",
307
+ "end": "(?=[),])",
308
+ "patterns": [
309
+ {
310
+ "include": "#method_parameters"
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "include": "#method_parameters"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "begin": "(?=def\\b)(?<=^|\\s)(def)\\s+((?>[A-Z_a-z]\\w*(?>\\.|::))?(?>[A-Z_a-z]\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\&/`|]|\\*\\*?|=?~|[-+]@?|\\[]=?))[\\t ](?=[\\t ]*[^#;\\s])",
321
+ "beginCaptures": {
322
+ "1": {
323
+ "name": "keyword.control.def.ruby"
324
+ },
325
+ "2": {
326
+ "name": "entity.name.function.ruby"
327
+ }
328
+ },
329
+ "end": "(?=;)|(?<=[]!\"')?`}\\w])(?=\\s*#|\\s*$)",
330
+ "name": "meta.function.method.with-arguments.ruby",
331
+ "patterns": [
332
+ {
333
+ "begin": "(?=[\\&*A-Z_a-z])",
334
+ "end": "(?=[,;]|\\s*#|\\s*$)",
335
+ "patterns": [
336
+ {
337
+ "include": "#method_parameters"
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ "include": "#method_parameters"
343
+ }
344
+ ]
345
+ },
346
+ {
347
+ "captures": {
348
+ "1": {
349
+ "name": "keyword.control.def.ruby"
350
+ },
351
+ "3": {
352
+ "name": "entity.name.function.ruby"
353
+ }
354
+ },
355
+ "match": "(?=def\\b)(?<=^|\\s)(def)\\b(\\s+((?>[A-Z_a-z]\\w*(?>\\.|::))?(?>[A-Z_a-z]\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\&/`|]|\\*\\*?|=?~|[-+]@?|\\[]=?)))?",
356
+ "name": "meta.function.method.without-arguments.ruby"
357
+ },
358
+ {
359
+ "match": "\\b(\\d(?>_?\\d)*(\\.(?![^\\s\\d])(?>_?\\d)*)?([Ee][-+]?\\d(?>_?\\d)*)?|0(?:[Xx]\\h(?>_?\\h)*|[Oo]?[0-7](?>_?[0-7])*|[Bb][01](?>_?[01])*|[Dd]\\d(?>_?\\d)*))\\b",
360
+ "name": "constant.numeric.ruby"
361
+ },
362
+ {
363
+ "begin": ":'",
364
+ "beginCaptures": {
365
+ "0": {
366
+ "name": "punctuation.definition.symbol.begin.ruby"
367
+ }
368
+ },
369
+ "end": "'",
370
+ "endCaptures": {
371
+ "0": {
372
+ "name": "punctuation.definition.symbol.end.ruby"
373
+ }
374
+ },
375
+ "name": "constant.language.symbol.ruby",
376
+ "patterns": [
377
+ {
378
+ "match": "\\\\['\\\\]",
379
+ "name": "constant.character.escape.ruby"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "begin": ":\"",
385
+ "beginCaptures": {
386
+ "0": {
387
+ "name": "punctuation.section.symbol.begin.ruby"
388
+ }
389
+ },
390
+ "end": "\"",
391
+ "endCaptures": {
392
+ "0": {
393
+ "name": "punctuation.section.symbol.end.ruby"
394
+ }
395
+ },
396
+ "name": "constant.language.symbol.interpolated.ruby",
397
+ "patterns": [
398
+ {
399
+ "include": "#interpolated_ruby"
400
+ },
401
+ {
402
+ "include": "#escaped_char"
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "match": "(?<!\\()/=",
408
+ "name": "keyword.operator.assignment.augmented.ruby"
409
+ },
410
+ {
411
+ "begin": "'",
412
+ "beginCaptures": {
413
+ "0": {
414
+ "name": "punctuation.definition.string.begin.ruby"
415
+ }
416
+ },
417
+ "end": "'",
418
+ "endCaptures": {
419
+ "0": {
420
+ "name": "punctuation.definition.string.end.ruby"
421
+ }
422
+ },
423
+ "name": "string.quoted.single.ruby",
424
+ "patterns": [
425
+ {
426
+ "match": "\\\\['\\\\]",
427
+ "name": "constant.character.escape.ruby"
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ "begin": "\"",
433
+ "beginCaptures": {
434
+ "0": {
435
+ "name": "punctuation.definition.string.begin.ruby"
436
+ }
437
+ },
438
+ "end": "\"",
439
+ "endCaptures": {
440
+ "0": {
441
+ "name": "punctuation.definition.string.end.ruby"
442
+ }
443
+ },
444
+ "name": "string.quoted.double.interpolated.ruby",
445
+ "patterns": [
446
+ {
447
+ "include": "#interpolated_ruby"
448
+ },
449
+ {
450
+ "include": "#escaped_char"
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ "begin": "(?<!\\.)`",
456
+ "beginCaptures": {
457
+ "0": {
458
+ "name": "punctuation.definition.string.begin.ruby"
459
+ }
460
+ },
461
+ "end": "`",
462
+ "endCaptures": {
463
+ "0": {
464
+ "name": "punctuation.definition.string.end.ruby"
465
+ }
466
+ },
467
+ "name": "string.interpolated.ruby",
468
+ "patterns": [
469
+ {
470
+ "include": "#interpolated_ruby"
471
+ },
472
+ {
473
+ "include": "#escaped_char"
474
+ }
475
+ ]
476
+ },
477
+ {
478
+ "begin": "(?<![)\\w])((/))(?![*+?])(?!\\s*$)(?=(?:\\\\/|[^/])*+/[eimnosux]*\\s*(?:[]#),.:?}]|\\|\\||&&|<=>|=>|==|=~|!~|!=|;|$|if|else|elsif|then|do|end|unless|while|until|or|and))",
479
+ "captures": {
480
+ "1": {
481
+ "name": "string.regexp.interpolated.ruby"
482
+ },
483
+ "2": {
484
+ "name": "punctuation.section.regexp.ruby"
485
+ }
486
+ },
487
+ "contentName": "string.regexp.interpolated.ruby",
488
+ "end": "((/[eimnosux]*))",
489
+ "patterns": [
490
+ {
491
+ "include": "#regex_sub"
492
+ }
493
+ ]
494
+ },
495
+ {
496
+ "begin": "%r\\{",
497
+ "beginCaptures": {
498
+ "0": {
499
+ "name": "punctuation.section.regexp.begin.ruby"
500
+ }
501
+ },
502
+ "end": "}[eimnosux]*",
503
+ "endCaptures": {
504
+ "0": {
505
+ "name": "punctuation.section.regexp.end.ruby"
506
+ }
507
+ },
508
+ "name": "string.regexp.interpolated.ruby",
509
+ "patterns": [
510
+ {
511
+ "include": "#regex_sub"
512
+ },
513
+ {
514
+ "include": "#nest_curly_r"
515
+ }
516
+ ]
517
+ },
518
+ {
519
+ "begin": "%r\\[",
520
+ "beginCaptures": {
521
+ "0": {
522
+ "name": "punctuation.section.regexp.begin.ruby"
523
+ }
524
+ },
525
+ "end": "][eimnosux]*",
526
+ "endCaptures": {
527
+ "0": {
528
+ "name": "punctuation.section.regexp.end.ruby"
529
+ }
530
+ },
531
+ "name": "string.regexp.interpolated.ruby",
532
+ "patterns": [
533
+ {
534
+ "include": "#regex_sub"
535
+ },
536
+ {
537
+ "include": "#nest_brackets_r"
538
+ }
539
+ ]
540
+ },
541
+ {
542
+ "begin": "%r\\(",
543
+ "beginCaptures": {
544
+ "0": {
545
+ "name": "punctuation.section.regexp.begin.ruby"
546
+ }
547
+ },
548
+ "end": "\\)[eimnosux]*",
549
+ "endCaptures": {
550
+ "0": {
551
+ "name": "punctuation.section.regexp.end.ruby"
552
+ }
553
+ },
554
+ "name": "string.regexp.interpolated.ruby",
555
+ "patterns": [
556
+ {
557
+ "include": "#regex_sub"
558
+ },
559
+ {
560
+ "include": "#nest_parens_r"
561
+ }
562
+ ]
563
+ },
564
+ {
565
+ "begin": "%r<",
566
+ "beginCaptures": {
567
+ "0": {
568
+ "name": "punctuation.section.regexp.begin.ruby"
569
+ }
570
+ },
571
+ "end": ">[eimnosux]*",
572
+ "endCaptures": {
573
+ "0": {
574
+ "name": "punctuation.section.regexp.end.ruby"
575
+ }
576
+ },
577
+ "name": "string.regexp.interpolated.ruby",
578
+ "patterns": [
579
+ {
580
+ "include": "#regex_sub"
581
+ },
582
+ {
583
+ "include": "#nest_ltgt_r"
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "begin": "%r(\\W)",
589
+ "beginCaptures": {
590
+ "0": {
591
+ "name": "punctuation.section.regexp.begin.ruby"
592
+ }
593
+ },
594
+ "end": "\\1[eimnosux]*",
595
+ "endCaptures": {
596
+ "0": {
597
+ "name": "punctuation.section.regexp.end.ruby"
598
+ }
599
+ },
600
+ "name": "string.regexp.interpolated.ruby",
601
+ "patterns": [
602
+ {
603
+ "include": "#regex_sub"
604
+ }
605
+ ]
606
+ },
607
+ {
608
+ "begin": "%I\\[",
609
+ "beginCaptures": {
610
+ "0": {
611
+ "name": "punctuation.section.array.begin.ruby"
612
+ }
613
+ },
614
+ "end": "]",
615
+ "endCaptures": {
616
+ "0": {
617
+ "name": "punctuation.section.array.end.ruby"
618
+ }
619
+ },
620
+ "name": "constant.language.symbol.interpolated.ruby",
621
+ "patterns": [
622
+ {
623
+ "include": "#interpolated_ruby"
624
+ },
625
+ {
626
+ "include": "#escaped_char"
627
+ },
628
+ {
629
+ "include": "#nest_brackets_i"
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ "begin": "%I\\(",
635
+ "beginCaptures": {
636
+ "0": {
637
+ "name": "punctuation.section.array.begin.ruby"
638
+ }
639
+ },
640
+ "end": "\\)",
641
+ "endCaptures": {
642
+ "0": {
643
+ "name": "punctuation.section.array.end.ruby"
644
+ }
645
+ },
646
+ "name": "constant.language.symbol.interpolated.ruby",
647
+ "patterns": [
648
+ {
649
+ "include": "#interpolated_ruby"
650
+ },
651
+ {
652
+ "include": "#escaped_char"
653
+ },
654
+ {
655
+ "include": "#nest_parens_i"
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ "begin": "%I<",
661
+ "beginCaptures": {
662
+ "0": {
663
+ "name": "punctuation.section.array.begin.ruby"
664
+ }
665
+ },
666
+ "end": ">",
667
+ "endCaptures": {
668
+ "0": {
669
+ "name": "punctuation.section.array.end.ruby"
670
+ }
671
+ },
672
+ "name": "constant.language.symbol.interpolated.ruby",
673
+ "patterns": [
674
+ {
675
+ "include": "#interpolated_ruby"
676
+ },
677
+ {
678
+ "include": "#escaped_char"
679
+ },
680
+ {
681
+ "include": "#nest_ltgt_i"
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ "begin": "%I\\{",
687
+ "beginCaptures": {
688
+ "0": {
689
+ "name": "punctuation.section.array.begin.ruby"
690
+ }
691
+ },
692
+ "end": "}",
693
+ "endCaptures": {
694
+ "0": {
695
+ "name": "punctuation.section.array.end.ruby"
696
+ }
697
+ },
698
+ "name": "constant.language.symbol.interpolated.ruby",
699
+ "patterns": [
700
+ {
701
+ "include": "#interpolated_ruby"
702
+ },
703
+ {
704
+ "include": "#escaped_char"
705
+ },
706
+ {
707
+ "include": "#nest_curly_i"
708
+ }
709
+ ]
710
+ },
711
+ {
712
+ "begin": "%I(\\W)",
713
+ "beginCaptures": {
714
+ "0": {
715
+ "name": "punctuation.section.array.begin.ruby"
716
+ }
717
+ },
718
+ "end": "\\1",
719
+ "endCaptures": {
720
+ "0": {
721
+ "name": "punctuation.section.array.end.ruby"
722
+ }
723
+ },
724
+ "name": "constant.language.symbol.interpolated.ruby",
725
+ "patterns": [
726
+ {
727
+ "include": "#interpolated_ruby"
728
+ },
729
+ {
730
+ "include": "#escaped_char"
731
+ }
732
+ ]
733
+ },
734
+ {
735
+ "begin": "%i\\[",
736
+ "beginCaptures": {
737
+ "0": {
738
+ "name": "punctuation.section.array.begin.ruby"
739
+ }
740
+ },
741
+ "end": "]",
742
+ "endCaptures": {
743
+ "0": {
744
+ "name": "punctuation.section.array.end.ruby"
745
+ }
746
+ },
747
+ "name": "constant.language.symbol.ruby",
748
+ "patterns": [
749
+ {
750
+ "match": "\\\\[]\\\\]",
751
+ "name": "constant.character.escape.ruby"
752
+ },
753
+ {
754
+ "include": "#nest_brackets"
755
+ }
756
+ ]
757
+ },
758
+ {
759
+ "begin": "%i\\(",
760
+ "beginCaptures": {
761
+ "0": {
762
+ "name": "punctuation.section.array.begin.ruby"
763
+ }
764
+ },
765
+ "end": "\\)",
766
+ "endCaptures": {
767
+ "0": {
768
+ "name": "punctuation.section.array.end.ruby"
769
+ }
770
+ },
771
+ "name": "constant.language.symbol.ruby",
772
+ "patterns": [
773
+ {
774
+ "match": "\\\\[)\\\\]",
775
+ "name": "constant.character.escape.ruby"
776
+ },
777
+ {
778
+ "include": "#nest_parens"
779
+ }
780
+ ]
781
+ },
782
+ {
783
+ "begin": "%i<",
784
+ "beginCaptures": {
785
+ "0": {
786
+ "name": "punctuation.section.array.begin.ruby"
787
+ }
788
+ },
789
+ "end": ">",
790
+ "endCaptures": {
791
+ "0": {
792
+ "name": "punctuation.section.array.end.ruby"
793
+ }
794
+ },
795
+ "name": "constant.language.symbol.ruby",
796
+ "patterns": [
797
+ {
798
+ "match": "\\\\[>\\\\]",
799
+ "name": "constant.character.escape.ruby"
800
+ },
801
+ {
802
+ "include": "#nest_ltgt"
803
+ }
804
+ ]
805
+ },
806
+ {
807
+ "begin": "%i\\{",
808
+ "beginCaptures": {
809
+ "0": {
810
+ "name": "punctuation.section.array.begin.ruby"
811
+ }
812
+ },
813
+ "end": "}",
814
+ "endCaptures": {
815
+ "0": {
816
+ "name": "punctuation.section.array.end.ruby"
817
+ }
818
+ },
819
+ "name": "constant.language.symbol.ruby",
820
+ "patterns": [
821
+ {
822
+ "match": "\\\\[\\\\}]",
823
+ "name": "constant.character.escape.ruby"
824
+ },
825
+ {
826
+ "include": "#nest_curly"
827
+ }
828
+ ]
829
+ },
830
+ {
831
+ "begin": "%i(\\W)",
832
+ "beginCaptures": {
833
+ "0": {
834
+ "name": "punctuation.section.array.begin.ruby"
835
+ }
836
+ },
837
+ "end": "\\1",
838
+ "endCaptures": {
839
+ "0": {
840
+ "name": "punctuation.section.array.end.ruby"
841
+ }
842
+ },
843
+ "name": "constant.language.symbol.ruby",
844
+ "patterns": [
845
+ {
846
+ "match": "\\\\."
847
+ }
848
+ ]
849
+ },
850
+ {
851
+ "begin": "%W\\[",
852
+ "beginCaptures": {
853
+ "0": {
854
+ "name": "punctuation.section.array.begin.ruby"
855
+ }
856
+ },
857
+ "end": "]",
858
+ "endCaptures": {
859
+ "0": {
860
+ "name": "punctuation.section.array.end.ruby"
861
+ }
862
+ },
863
+ "name": "string.quoted.other.interpolated.ruby",
864
+ "patterns": [
865
+ {
866
+ "include": "#interpolated_ruby"
867
+ },
868
+ {
869
+ "include": "#escaped_char"
870
+ },
871
+ {
872
+ "include": "#nest_brackets_i"
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ "begin": "%W\\(",
878
+ "beginCaptures": {
879
+ "0": {
880
+ "name": "punctuation.section.array.begin.ruby"
881
+ }
882
+ },
883
+ "end": "\\)",
884
+ "endCaptures": {
885
+ "0": {
886
+ "name": "punctuation.section.array.end.ruby"
887
+ }
888
+ },
889
+ "name": "string.quoted.other.interpolated.ruby",
890
+ "patterns": [
891
+ {
892
+ "include": "#interpolated_ruby"
893
+ },
894
+ {
895
+ "include": "#escaped_char"
896
+ },
897
+ {
898
+ "include": "#nest_parens_i"
899
+ }
900
+ ]
901
+ },
902
+ {
903
+ "begin": "%W<",
904
+ "beginCaptures": {
905
+ "0": {
906
+ "name": "punctuation.section.array.begin.ruby"
907
+ }
908
+ },
909
+ "end": ">",
910
+ "endCaptures": {
911
+ "0": {
912
+ "name": "punctuation.section.array.end.ruby"
913
+ }
914
+ },
915
+ "name": "string.quoted.other.interpolated.ruby",
916
+ "patterns": [
917
+ {
918
+ "include": "#interpolated_ruby"
919
+ },
920
+ {
921
+ "include": "#escaped_char"
922
+ },
923
+ {
924
+ "include": "#nest_ltgt_i"
925
+ }
926
+ ]
927
+ },
928
+ {
929
+ "begin": "%W\\{",
930
+ "beginCaptures": {
931
+ "0": {
932
+ "name": "punctuation.section.array.begin.ruby"
933
+ }
934
+ },
935
+ "end": "}",
936
+ "endCaptures": {
937
+ "0": {
938
+ "name": "punctuation.section.array.end.ruby"
939
+ }
940
+ },
941
+ "name": "string.quoted.other.interpolated.ruby",
942
+ "patterns": [
943
+ {
944
+ "include": "#interpolated_ruby"
945
+ },
946
+ {
947
+ "include": "#escaped_char"
948
+ },
949
+ {
950
+ "include": "#nest_curly_i"
951
+ }
952
+ ]
953
+ },
954
+ {
955
+ "begin": "%W(\\W)",
956
+ "beginCaptures": {
957
+ "0": {
958
+ "name": "punctuation.section.array.begin.ruby"
959
+ }
960
+ },
961
+ "end": "\\1",
962
+ "endCaptures": {
963
+ "0": {
964
+ "name": "punctuation.section.array.end.ruby"
965
+ }
966
+ },
967
+ "name": "string.quoted.other.interpolated.ruby",
968
+ "patterns": [
969
+ {
970
+ "include": "#interpolated_ruby"
971
+ },
972
+ {
973
+ "include": "#escaped_char"
974
+ }
975
+ ]
976
+ },
977
+ {
978
+ "begin": "%w\\[",
979
+ "beginCaptures": {
980
+ "0": {
981
+ "name": "punctuation.section.array.begin.ruby"
982
+ }
983
+ },
984
+ "end": "]",
985
+ "endCaptures": {
986
+ "0": {
987
+ "name": "punctuation.section.array.end.ruby"
988
+ }
989
+ },
990
+ "name": "string.quoted.other.ruby",
991
+ "patterns": [
992
+ {
993
+ "match": "\\\\[]\\\\]",
994
+ "name": "constant.character.escape.ruby"
995
+ },
996
+ {
997
+ "include": "#nest_brackets"
998
+ }
999
+ ]
1000
+ },
1001
+ {
1002
+ "begin": "%w\\(",
1003
+ "beginCaptures": {
1004
+ "0": {
1005
+ "name": "punctuation.section.array.begin.ruby"
1006
+ }
1007
+ },
1008
+ "end": "\\)",
1009
+ "endCaptures": {
1010
+ "0": {
1011
+ "name": "punctuation.section.array.end.ruby"
1012
+ }
1013
+ },
1014
+ "name": "string.quoted.other.ruby",
1015
+ "patterns": [
1016
+ {
1017
+ "match": "\\\\[)\\\\]",
1018
+ "name": "constant.character.escape.ruby"
1019
+ },
1020
+ {
1021
+ "include": "#nest_parens"
1022
+ }
1023
+ ]
1024
+ },
1025
+ {
1026
+ "begin": "%w<",
1027
+ "beginCaptures": {
1028
+ "0": {
1029
+ "name": "punctuation.section.array.begin.ruby"
1030
+ }
1031
+ },
1032
+ "end": ">",
1033
+ "endCaptures": {
1034
+ "0": {
1035
+ "name": "punctuation.section.array.end.ruby"
1036
+ }
1037
+ },
1038
+ "name": "string.quoted.other.ruby",
1039
+ "patterns": [
1040
+ {
1041
+ "match": "\\\\[>\\\\]",
1042
+ "name": "constant.character.escape.ruby"
1043
+ },
1044
+ {
1045
+ "include": "#nest_ltgt"
1046
+ }
1047
+ ]
1048
+ },
1049
+ {
1050
+ "begin": "%w\\{",
1051
+ "beginCaptures": {
1052
+ "0": {
1053
+ "name": "punctuation.section.array.begin.ruby"
1054
+ }
1055
+ },
1056
+ "end": "}",
1057
+ "endCaptures": {
1058
+ "0": {
1059
+ "name": "punctuation.section.array.end.ruby"
1060
+ }
1061
+ },
1062
+ "name": "string.quoted.other.ruby",
1063
+ "patterns": [
1064
+ {
1065
+ "match": "\\\\[\\\\}]",
1066
+ "name": "constant.character.escape.ruby"
1067
+ },
1068
+ {
1069
+ "include": "#nest_curly"
1070
+ }
1071
+ ]
1072
+ },
1073
+ {
1074
+ "begin": "%w(\\W)",
1075
+ "beginCaptures": {
1076
+ "0": {
1077
+ "name": "punctuation.section.array.begin.ruby"
1078
+ }
1079
+ },
1080
+ "end": "\\1",
1081
+ "endCaptures": {
1082
+ "0": {
1083
+ "name": "punctuation.section.array.end.ruby"
1084
+ }
1085
+ },
1086
+ "name": "string.quoted.other.ruby",
1087
+ "patterns": [
1088
+ {
1089
+ "match": "\\\\."
1090
+ }
1091
+ ]
1092
+ },
1093
+ {
1094
+ "begin": "%[Qx]?\\(",
1095
+ "beginCaptures": {
1096
+ "0": {
1097
+ "name": "punctuation.definition.string.begin.ruby"
1098
+ }
1099
+ },
1100
+ "end": "\\)",
1101
+ "endCaptures": {
1102
+ "0": {
1103
+ "name": "punctuation.definition.string.end.ruby"
1104
+ }
1105
+ },
1106
+ "name": "string.quoted.other.interpolated.ruby",
1107
+ "patterns": [
1108
+ {
1109
+ "include": "#interpolated_ruby"
1110
+ },
1111
+ {
1112
+ "include": "#escaped_char"
1113
+ },
1114
+ {
1115
+ "include": "#nest_parens_i"
1116
+ }
1117
+ ]
1118
+ },
1119
+ {
1120
+ "begin": "%[Qx]?\\[",
1121
+ "beginCaptures": {
1122
+ "0": {
1123
+ "name": "punctuation.definition.string.begin.ruby"
1124
+ }
1125
+ },
1126
+ "end": "]",
1127
+ "endCaptures": {
1128
+ "0": {
1129
+ "name": "punctuation.definition.string.end.ruby"
1130
+ }
1131
+ },
1132
+ "name": "string.quoted.other.interpolated.ruby",
1133
+ "patterns": [
1134
+ {
1135
+ "include": "#interpolated_ruby"
1136
+ },
1137
+ {
1138
+ "include": "#escaped_char"
1139
+ },
1140
+ {
1141
+ "include": "#nest_brackets_i"
1142
+ }
1143
+ ]
1144
+ },
1145
+ {
1146
+ "begin": "%[Qx]?\\{",
1147
+ "beginCaptures": {
1148
+ "0": {
1149
+ "name": "punctuation.definition.string.begin.ruby"
1150
+ }
1151
+ },
1152
+ "end": "}",
1153
+ "endCaptures": {
1154
+ "0": {
1155
+ "name": "punctuation.definition.string.end.ruby"
1156
+ }
1157
+ },
1158
+ "name": "string.quoted.other.interpolated.ruby",
1159
+ "patterns": [
1160
+ {
1161
+ "include": "#interpolated_ruby"
1162
+ },
1163
+ {
1164
+ "include": "#escaped_char"
1165
+ },
1166
+ {
1167
+ "include": "#nest_curly_i"
1168
+ }
1169
+ ]
1170
+ },
1171
+ {
1172
+ "begin": "%[Qx]?<",
1173
+ "beginCaptures": {
1174
+ "0": {
1175
+ "name": "punctuation.definition.string.begin.ruby"
1176
+ }
1177
+ },
1178
+ "end": ">",
1179
+ "endCaptures": {
1180
+ "0": {
1181
+ "name": "punctuation.definition.string.end.ruby"
1182
+ }
1183
+ },
1184
+ "name": "string.quoted.other.interpolated.ruby",
1185
+ "patterns": [
1186
+ {
1187
+ "include": "#interpolated_ruby"
1188
+ },
1189
+ {
1190
+ "include": "#escaped_char"
1191
+ },
1192
+ {
1193
+ "include": "#nest_ltgt_i"
1194
+ }
1195
+ ]
1196
+ },
1197
+ {
1198
+ "begin": "%[Qx](\\W)",
1199
+ "beginCaptures": {
1200
+ "0": {
1201
+ "name": "punctuation.definition.string.begin.ruby"
1202
+ }
1203
+ },
1204
+ "end": "\\1",
1205
+ "endCaptures": {
1206
+ "0": {
1207
+ "name": "punctuation.definition.string.end.ruby"
1208
+ }
1209
+ },
1210
+ "name": "string.quoted.other.interpolated.ruby",
1211
+ "patterns": [
1212
+ {
1213
+ "include": "#interpolated_ruby"
1214
+ },
1215
+ {
1216
+ "include": "#escaped_char"
1217
+ }
1218
+ ]
1219
+ },
1220
+ {
1221
+ "begin": "%([^=\\w\\s])",
1222
+ "beginCaptures": {
1223
+ "0": {
1224
+ "name": "punctuation.definition.string.begin.ruby"
1225
+ }
1226
+ },
1227
+ "end": "\\1",
1228
+ "endCaptures": {
1229
+ "0": {
1230
+ "name": "punctuation.definition.string.end.ruby"
1231
+ }
1232
+ },
1233
+ "name": "string.quoted.other.interpolated.ruby",
1234
+ "patterns": [
1235
+ {
1236
+ "include": "#interpolated_ruby"
1237
+ },
1238
+ {
1239
+ "include": "#escaped_char"
1240
+ }
1241
+ ]
1242
+ },
1243
+ {
1244
+ "begin": "%q\\(",
1245
+ "beginCaptures": {
1246
+ "0": {
1247
+ "name": "punctuation.definition.string.begin.ruby"
1248
+ }
1249
+ },
1250
+ "end": "\\)",
1251
+ "endCaptures": {
1252
+ "0": {
1253
+ "name": "punctuation.definition.string.end.ruby"
1254
+ }
1255
+ },
1256
+ "name": "string.quoted.other.ruby",
1257
+ "patterns": [
1258
+ {
1259
+ "match": "\\\\[)\\\\]",
1260
+ "name": "constant.character.escape.ruby"
1261
+ },
1262
+ {
1263
+ "include": "#nest_parens"
1264
+ }
1265
+ ]
1266
+ },
1267
+ {
1268
+ "begin": "%q<",
1269
+ "beginCaptures": {
1270
+ "0": {
1271
+ "name": "punctuation.definition.string.begin.ruby"
1272
+ }
1273
+ },
1274
+ "end": ">",
1275
+ "endCaptures": {
1276
+ "0": {
1277
+ "name": "punctuation.definition.string.end.ruby"
1278
+ }
1279
+ },
1280
+ "name": "string.quoted.other.ruby",
1281
+ "patterns": [
1282
+ {
1283
+ "match": "\\\\[>\\\\]",
1284
+ "name": "constant.character.escape.ruby"
1285
+ },
1286
+ {
1287
+ "include": "#nest_ltgt"
1288
+ }
1289
+ ]
1290
+ },
1291
+ {
1292
+ "begin": "%q\\[",
1293
+ "beginCaptures": {
1294
+ "0": {
1295
+ "name": "punctuation.definition.string.begin.ruby"
1296
+ }
1297
+ },
1298
+ "end": "]",
1299
+ "endCaptures": {
1300
+ "0": {
1301
+ "name": "punctuation.definition.string.end.ruby"
1302
+ }
1303
+ },
1304
+ "name": "string.quoted.other.ruby",
1305
+ "patterns": [
1306
+ {
1307
+ "match": "\\\\[]\\\\]",
1308
+ "name": "constant.character.escape.ruby"
1309
+ },
1310
+ {
1311
+ "include": "#nest_brackets"
1312
+ }
1313
+ ]
1314
+ },
1315
+ {
1316
+ "begin": "%q\\{",
1317
+ "beginCaptures": {
1318
+ "0": {
1319
+ "name": "punctuation.definition.string.begin.ruby"
1320
+ }
1321
+ },
1322
+ "end": "}",
1323
+ "endCaptures": {
1324
+ "0": {
1325
+ "name": "punctuation.definition.string.end.ruby"
1326
+ }
1327
+ },
1328
+ "name": "string.quoted.other.ruby",
1329
+ "patterns": [
1330
+ {
1331
+ "match": "\\\\[\\\\}]",
1332
+ "name": "constant.character.escape.ruby"
1333
+ },
1334
+ {
1335
+ "include": "#nest_curly"
1336
+ }
1337
+ ]
1338
+ },
1339
+ {
1340
+ "begin": "%q(\\W)",
1341
+ "beginCaptures": {
1342
+ "0": {
1343
+ "name": "punctuation.definition.string.begin.ruby"
1344
+ }
1345
+ },
1346
+ "end": "\\1",
1347
+ "endCaptures": {
1348
+ "0": {
1349
+ "name": "punctuation.definition.string.end.ruby"
1350
+ }
1351
+ },
1352
+ "name": "string.quoted.other.ruby",
1353
+ "patterns": [
1354
+ {
1355
+ "match": "\\\\."
1356
+ }
1357
+ ]
1358
+ },
1359
+ {
1360
+ "begin": "%s\\(",
1361
+ "beginCaptures": {
1362
+ "0": {
1363
+ "name": "punctuation.definition.symbol.begin.ruby"
1364
+ }
1365
+ },
1366
+ "end": "\\)",
1367
+ "endCaptures": {
1368
+ "0": {
1369
+ "name": "punctuation.definition.symbol.end.ruby"
1370
+ }
1371
+ },
1372
+ "name": "constant.language.symbol.ruby",
1373
+ "patterns": [
1374
+ {
1375
+ "match": "\\\\[)\\\\]",
1376
+ "name": "constant.character.escape.ruby"
1377
+ },
1378
+ {
1379
+ "include": "#nest_parens"
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ "begin": "%s<",
1385
+ "beginCaptures": {
1386
+ "0": {
1387
+ "name": "punctuation.definition.symbol.begin.ruby"
1388
+ }
1389
+ },
1390
+ "end": ">",
1391
+ "endCaptures": {
1392
+ "0": {
1393
+ "name": "punctuation.definition.symbol.end.ruby"
1394
+ }
1395
+ },
1396
+ "name": "constant.language.symbol.ruby",
1397
+ "patterns": [
1398
+ {
1399
+ "match": "\\\\[>\\\\]",
1400
+ "name": "constant.character.escape.ruby"
1401
+ },
1402
+ {
1403
+ "include": "#nest_ltgt"
1404
+ }
1405
+ ]
1406
+ },
1407
+ {
1408
+ "begin": "%s\\[",
1409
+ "beginCaptures": {
1410
+ "0": {
1411
+ "name": "punctuation.definition.symbol.begin.ruby"
1412
+ }
1413
+ },
1414
+ "end": "]",
1415
+ "endCaptures": {
1416
+ "0": {
1417
+ "name": "punctuation.definition.symbol.end.ruby"
1418
+ }
1419
+ },
1420
+ "name": "constant.language.symbol.ruby",
1421
+ "patterns": [
1422
+ {
1423
+ "match": "\\\\[]\\\\]",
1424
+ "name": "constant.character.escape.ruby"
1425
+ },
1426
+ {
1427
+ "include": "#nest_brackets"
1428
+ }
1429
+ ]
1430
+ },
1431
+ {
1432
+ "begin": "%s\\{",
1433
+ "beginCaptures": {
1434
+ "0": {
1435
+ "name": "punctuation.definition.symbol.begin.ruby"
1436
+ }
1437
+ },
1438
+ "end": "}",
1439
+ "endCaptures": {
1440
+ "0": {
1441
+ "name": "punctuation.definition.symbol.end.ruby"
1442
+ }
1443
+ },
1444
+ "name": "constant.language.symbol.ruby",
1445
+ "patterns": [
1446
+ {
1447
+ "match": "\\\\[\\\\}]",
1448
+ "name": "constant.character.escape.ruby"
1449
+ },
1450
+ {
1451
+ "include": "#nest_curly"
1452
+ }
1453
+ ]
1454
+ },
1455
+ {
1456
+ "begin": "%s(\\W)",
1457
+ "beginCaptures": {
1458
+ "0": {
1459
+ "name": "punctuation.definition.symbol.begin.ruby"
1460
+ }
1461
+ },
1462
+ "end": "\\1",
1463
+ "endCaptures": {
1464
+ "0": {
1465
+ "name": "punctuation.definition.symbol.end.ruby"
1466
+ }
1467
+ },
1468
+ "name": "constant.language.symbol.ruby",
1469
+ "patterns": [
1470
+ {
1471
+ "match": "\\\\."
1472
+ }
1473
+ ]
1474
+ },
1475
+ {
1476
+ "captures": {
1477
+ "1": {
1478
+ "name": "punctuation.definition.constant.ruby"
1479
+ }
1480
+ },
1481
+ "match": "(?<!:)(:)(?>[$A-Z_a-z]\\w*(?>[!?]|=(?![=>]))?|===?|<=>|>[=>]?|<[<=]?|[%\\&/`|]|\\*\\*?|=?~|[-+]@?|\\[]=?|@@?[A-Z_a-z]\\w*)",
1482
+ "name": "constant.language.symbol.ruby"
1483
+ },
1484
+ {
1485
+ "begin": "^=begin",
1486
+ "captures": {
1487
+ "0": {
1488
+ "name": "punctuation.definition.comment.ruby"
1489
+ }
1490
+ },
1491
+ "end": "^=end",
1492
+ "name": "comment.block.documentation.ruby"
1493
+ },
1494
+ {
1495
+ "include": "#yard"
1496
+ },
1497
+ {
1498
+ "begin": "(^[\\t ]+)?(?=#)",
1499
+ "beginCaptures": {
1500
+ "1": {
1501
+ "name": "punctuation.whitespace.comment.leading.ruby"
1502
+ }
1503
+ },
1504
+ "end": "(?!\\G)",
1505
+ "patterns": [
1506
+ {
1507
+ "begin": "#",
1508
+ "beginCaptures": {
1509
+ "0": {
1510
+ "name": "punctuation.definition.comment.ruby"
1511
+ }
1512
+ },
1513
+ "end": "\\n",
1514
+ "name": "comment.line.number-sign.ruby"
1515
+ }
1516
+ ]
1517
+ },
1518
+ {
1519
+ "match": "(?<!\\w)\\?(\\\\(x\\h{1,2}(?!\\h)\\b|0[0-7]{0,2}(?![0-7])\\b|[^0CMx])|(\\\\[CM]-)+\\w|[^\\\\\\s])",
1520
+ "name": "constant.numeric.ruby"
1521
+ },
1522
+ {
1523
+ "begin": "^__END__\\n",
1524
+ "captures": {
1525
+ "0": {
1526
+ "name": "string.unquoted.program-block.ruby"
1527
+ }
1528
+ },
1529
+ "contentName": "text.plain",
1530
+ "end": "(?=not)impossible",
1531
+ "patterns": [
1532
+ {
1533
+ "begin": "(?=<?xml|<(?i:html\\b)|!DOCTYPE (?i:html\\b))",
1534
+ "end": "(?=not)impossible",
1535
+ "name": "text.html.embedded.ruby",
1536
+ "patterns": [
1537
+ {
1538
+ "include": "text.html.basic"
1539
+ }
1540
+ ]
1541
+ }
1542
+ ]
1543
+ },
1544
+ {
1545
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)HTML)\\b\\1))",
1546
+ "end": "^\\s*((?:[_\\w]+_|)HTML)$\\n?",
1547
+ "endCaptures": {
1548
+ "0": {
1549
+ "name": "string.definition.end.ruby"
1550
+ }
1551
+ },
1552
+ "name": "meta.embedded.block.html",
1553
+ "patterns": [
1554
+ {
1555
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)HTML)\\b\\1)",
1556
+ "beginCaptures": {
1557
+ "0": {
1558
+ "name": "string.definition.begin.ruby"
1559
+ }
1560
+ },
1561
+ "contentName": "text.html",
1562
+ "patterns": [
1563
+ {
1564
+ "include": "#heredoc"
1565
+ },
1566
+ {
1567
+ "include": "#interpolated_ruby"
1568
+ },
1569
+ {
1570
+ "include": "text.html.basic"
1571
+ },
1572
+ {
1573
+ "include": "#escaped_char"
1574
+ }
1575
+ ],
1576
+ "while": "^(?!\\s*((?:[_\\w]+_|)HTML)\\s*$)"
1577
+ }
1578
+ ]
1579
+ },
1580
+ {
1581
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)HAML)\\b\\1))",
1582
+ "end": "^\\s*((?:[_\\w]+_|)HAML)$\\n?",
1583
+ "endCaptures": {
1584
+ "0": {
1585
+ "name": "string.definition.end.ruby"
1586
+ }
1587
+ },
1588
+ "name": "meta.embedded.block.haml",
1589
+ "patterns": [
1590
+ {
1591
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)HAML)\\b\\1)",
1592
+ "beginCaptures": {
1593
+ "0": {
1594
+ "name": "string.definition.begin.ruby"
1595
+ }
1596
+ },
1597
+ "contentName": "text.haml",
1598
+ "patterns": [
1599
+ {
1600
+ "include": "#heredoc"
1601
+ },
1602
+ {
1603
+ "include": "#interpolated_ruby"
1604
+ },
1605
+ {
1606
+ "include": "text.haml"
1607
+ },
1608
+ {
1609
+ "include": "#escaped_char"
1610
+ }
1611
+ ],
1612
+ "while": "^(?!\\s*((?:[_\\w]+_|)HAML)\\s*$)"
1613
+ }
1614
+ ]
1615
+ },
1616
+ {
1617
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)XML)\\b\\1))",
1618
+ "end": "^\\s*((?:[_\\w]+_|)XML)$\\n?",
1619
+ "endCaptures": {
1620
+ "0": {
1621
+ "name": "string.definition.end.ruby"
1622
+ }
1623
+ },
1624
+ "name": "meta.embedded.block.xml",
1625
+ "patterns": [
1626
+ {
1627
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)XML)\\b\\1)",
1628
+ "beginCaptures": {
1629
+ "0": {
1630
+ "name": "string.definition.begin.ruby"
1631
+ }
1632
+ },
1633
+ "contentName": "text.xml",
1634
+ "patterns": [
1635
+ {
1636
+ "include": "#heredoc"
1637
+ },
1638
+ {
1639
+ "include": "#interpolated_ruby"
1640
+ },
1641
+ {
1642
+ "include": "text.xml"
1643
+ },
1644
+ {
1645
+ "include": "#escaped_char"
1646
+ }
1647
+ ],
1648
+ "while": "^(?!\\s*((?:[_\\w]+_|)XML)\\s*$)"
1649
+ }
1650
+ ]
1651
+ },
1652
+ {
1653
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)SQL)\\b\\1))",
1654
+ "end": "^\\s*((?:[_\\w]+_|)SQL)$\\n?",
1655
+ "endCaptures": {
1656
+ "0": {
1657
+ "name": "string.definition.end.ruby"
1658
+ }
1659
+ },
1660
+ "name": "meta.embedded.block.sql",
1661
+ "patterns": [
1662
+ {
1663
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)SQL)\\b\\1)",
1664
+ "beginCaptures": {
1665
+ "0": {
1666
+ "name": "string.definition.begin.ruby"
1667
+ }
1668
+ },
1669
+ "contentName": "source.sql",
1670
+ "patterns": [
1671
+ {
1672
+ "include": "#heredoc"
1673
+ },
1674
+ {
1675
+ "include": "#interpolated_ruby"
1676
+ },
1677
+ {
1678
+ "include": "source.sql"
1679
+ },
1680
+ {
1681
+ "include": "#escaped_char"
1682
+ }
1683
+ ],
1684
+ "while": "^(?!\\s*((?:[_\\w]+_|)SQL)\\s*$)"
1685
+ }
1686
+ ]
1687
+ },
1688
+ {
1689
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)G(?:RAPHQL|QL))\\b\\1))",
1690
+ "end": "^\\s*((?:[_\\w]+_|)G(?:RAPHQL|QL))$\\n?",
1691
+ "endCaptures": {
1692
+ "0": {
1693
+ "name": "string.definition.end.ruby"
1694
+ }
1695
+ },
1696
+ "name": "meta.embedded.block.graphql",
1697
+ "patterns": [
1698
+ {
1699
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)G(?:RAPHQL|QL))\\b\\1)",
1700
+ "beginCaptures": {
1701
+ "0": {
1702
+ "name": "string.definition.begin.ruby"
1703
+ }
1704
+ },
1705
+ "contentName": "source.graphql",
1706
+ "patterns": [
1707
+ {
1708
+ "include": "#heredoc"
1709
+ },
1710
+ {
1711
+ "include": "#interpolated_ruby"
1712
+ },
1713
+ {
1714
+ "include": "source.graphql"
1715
+ },
1716
+ {
1717
+ "include": "#escaped_char"
1718
+ }
1719
+ ],
1720
+ "while": "^(?!\\s*((?:[_\\w]+_|)G(?:RAPHQL|QL))\\s*$)"
1721
+ }
1722
+ ]
1723
+ },
1724
+ {
1725
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)CSS)\\b\\1))",
1726
+ "end": "^\\s*((?:[_\\w]+_|)CSS)$\\n?",
1727
+ "endCaptures": {
1728
+ "0": {
1729
+ "name": "string.definition.end.ruby"
1730
+ }
1731
+ },
1732
+ "name": "meta.embedded.block.css",
1733
+ "patterns": [
1734
+ {
1735
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)CSS)\\b\\1)",
1736
+ "beginCaptures": {
1737
+ "0": {
1738
+ "name": "string.definition.begin.ruby"
1739
+ }
1740
+ },
1741
+ "contentName": "source.css",
1742
+ "patterns": [
1743
+ {
1744
+ "include": "#heredoc"
1745
+ },
1746
+ {
1747
+ "include": "#interpolated_ruby"
1748
+ },
1749
+ {
1750
+ "include": "source.css"
1751
+ },
1752
+ {
1753
+ "include": "#escaped_char"
1754
+ }
1755
+ ],
1756
+ "while": "^(?!\\s*((?:[_\\w]+_|)CSS)\\s*$)"
1757
+ }
1758
+ ]
1759
+ },
1760
+ {
1761
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)CPP)\\b\\1))",
1762
+ "end": "^\\s*((?:[_\\w]+_|)CPP)$\\n?",
1763
+ "endCaptures": {
1764
+ "0": {
1765
+ "name": "string.definition.end.ruby"
1766
+ }
1767
+ },
1768
+ "name": "meta.embedded.block.cpp",
1769
+ "patterns": [
1770
+ {
1771
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)CPP)\\b\\1)",
1772
+ "beginCaptures": {
1773
+ "0": {
1774
+ "name": "string.definition.begin.ruby"
1775
+ }
1776
+ },
1777
+ "contentName": "source.cpp",
1778
+ "patterns": [
1779
+ {
1780
+ "include": "#heredoc"
1781
+ },
1782
+ {
1783
+ "include": "#interpolated_ruby"
1784
+ },
1785
+ {
1786
+ "include": "source.cpp"
1787
+ },
1788
+ {
1789
+ "include": "#escaped_char"
1790
+ }
1791
+ ],
1792
+ "while": "^(?!\\s*((?:[_\\w]+_|)CPP)\\s*$)"
1793
+ }
1794
+ ]
1795
+ },
1796
+ {
1797
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)C)\\b\\1))",
1798
+ "end": "^\\s*((?:[_\\w]+_|)C)$\\n?",
1799
+ "endCaptures": {
1800
+ "0": {
1801
+ "name": "string.definition.end.ruby"
1802
+ }
1803
+ },
1804
+ "name": "meta.embedded.block.c",
1805
+ "patterns": [
1806
+ {
1807
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)C)\\b\\1)",
1808
+ "beginCaptures": {
1809
+ "0": {
1810
+ "name": "string.definition.begin.ruby"
1811
+ }
1812
+ },
1813
+ "contentName": "source.c",
1814
+ "patterns": [
1815
+ {
1816
+ "include": "#heredoc"
1817
+ },
1818
+ {
1819
+ "include": "#interpolated_ruby"
1820
+ },
1821
+ {
1822
+ "include": "source.c"
1823
+ },
1824
+ {
1825
+ "include": "#escaped_char"
1826
+ }
1827
+ ],
1828
+ "while": "^(?!\\s*((?:[_\\w]+_|)C)\\s*$)"
1829
+ }
1830
+ ]
1831
+ },
1832
+ {
1833
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)J(?:S|AVASCRIPT))\\b\\1))",
1834
+ "end": "^\\s*((?:[_\\w]+_|)J(?:S|AVASCRIPT))$\\n?",
1835
+ "endCaptures": {
1836
+ "0": {
1837
+ "name": "string.definition.end.ruby"
1838
+ }
1839
+ },
1840
+ "name": "meta.embedded.block.js",
1841
+ "patterns": [
1842
+ {
1843
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)J(?:S|AVASCRIPT))\\b\\1)",
1844
+ "beginCaptures": {
1845
+ "0": {
1846
+ "name": "string.definition.begin.ruby"
1847
+ }
1848
+ },
1849
+ "contentName": "source.js",
1850
+ "patterns": [
1851
+ {
1852
+ "include": "#heredoc"
1853
+ },
1854
+ {
1855
+ "include": "#interpolated_ruby"
1856
+ },
1857
+ {
1858
+ "include": "source.js"
1859
+ },
1860
+ {
1861
+ "include": "#escaped_char"
1862
+ }
1863
+ ],
1864
+ "while": "^(?!\\s*((?:[_\\w]+_|)J(?:S|AVASCRIPT))\\s*$)"
1865
+ }
1866
+ ]
1867
+ },
1868
+ {
1869
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)JQUERY)\\b\\1))",
1870
+ "end": "^\\s*((?:[_\\w]+_|)JQUERY)$\\n?",
1871
+ "endCaptures": {
1872
+ "0": {
1873
+ "name": "string.definition.end.ruby"
1874
+ }
1875
+ },
1876
+ "name": "meta.embedded.block.js.jquery",
1877
+ "patterns": [
1878
+ {
1879
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)JQUERY)\\b\\1)",
1880
+ "beginCaptures": {
1881
+ "0": {
1882
+ "name": "string.definition.begin.ruby"
1883
+ }
1884
+ },
1885
+ "contentName": "source.js.jquery",
1886
+ "patterns": [
1887
+ {
1888
+ "include": "#heredoc"
1889
+ },
1890
+ {
1891
+ "include": "#interpolated_ruby"
1892
+ },
1893
+ {
1894
+ "include": "source.js.jquery"
1895
+ },
1896
+ {
1897
+ "include": "#escaped_char"
1898
+ }
1899
+ ],
1900
+ "while": "^(?!\\s*((?:[_\\w]+_|)JQUERY)\\s*$)"
1901
+ }
1902
+ ]
1903
+ },
1904
+ {
1905
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)SH(?:|ELL))\\b\\1))",
1906
+ "end": "^\\s*((?:[_\\w]+_|)SH(?:|ELL))$\\n?",
1907
+ "endCaptures": {
1908
+ "0": {
1909
+ "name": "string.definition.end.ruby"
1910
+ }
1911
+ },
1912
+ "name": "meta.embedded.block.shell",
1913
+ "patterns": [
1914
+ {
1915
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)SH(?:|ELL))\\b\\1)",
1916
+ "beginCaptures": {
1917
+ "0": {
1918
+ "name": "string.definition.begin.ruby"
1919
+ }
1920
+ },
1921
+ "contentName": "source.shell",
1922
+ "patterns": [
1923
+ {
1924
+ "include": "#heredoc"
1925
+ },
1926
+ {
1927
+ "include": "#interpolated_ruby"
1928
+ },
1929
+ {
1930
+ "include": "source.shell"
1931
+ },
1932
+ {
1933
+ "include": "#escaped_char"
1934
+ }
1935
+ ],
1936
+ "while": "^(?!\\s*((?:[_\\w]+_|)SH(?:|ELL))\\s*$)"
1937
+ }
1938
+ ]
1939
+ },
1940
+ {
1941
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)LUA)\\b\\1))",
1942
+ "end": "^\\s*((?:[_\\w]+_|)LUA)$\\n?",
1943
+ "endCaptures": {
1944
+ "0": {
1945
+ "name": "string.definition.end.ruby"
1946
+ }
1947
+ },
1948
+ "name": "meta.embedded.block.lua",
1949
+ "patterns": [
1950
+ {
1951
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)LUA)\\b\\1)",
1952
+ "beginCaptures": {
1953
+ "0": {
1954
+ "name": "string.definition.begin.ruby"
1955
+ }
1956
+ },
1957
+ "contentName": "source.lua",
1958
+ "patterns": [
1959
+ {
1960
+ "include": "#heredoc"
1961
+ },
1962
+ {
1963
+ "include": "#interpolated_ruby"
1964
+ },
1965
+ {
1966
+ "include": "source.lua"
1967
+ },
1968
+ {
1969
+ "include": "#escaped_char"
1970
+ }
1971
+ ],
1972
+ "while": "^(?!\\s*((?:[_\\w]+_|)LUA)\\s*$)"
1973
+ }
1974
+ ]
1975
+ },
1976
+ {
1977
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)RUBY)\\b\\1))",
1978
+ "end": "^\\s*((?:[_\\w]+_|)RUBY)$\\n?",
1979
+ "endCaptures": {
1980
+ "0": {
1981
+ "name": "string.definition.end.ruby"
1982
+ }
1983
+ },
1984
+ "name": "meta.embedded.block.ruby",
1985
+ "patterns": [
1986
+ {
1987
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)RUBY)\\b\\1)",
1988
+ "beginCaptures": {
1989
+ "0": {
1990
+ "name": "string.definition.begin.ruby"
1991
+ }
1992
+ },
1993
+ "contentName": "source.ruby",
1994
+ "patterns": [
1995
+ {
1996
+ "include": "#heredoc"
1997
+ },
1998
+ {
1999
+ "include": "#interpolated_ruby"
2000
+ },
2001
+ {
2002
+ "include": "source.ruby"
2003
+ },
2004
+ {
2005
+ "include": "#escaped_char"
2006
+ }
2007
+ ],
2008
+ "while": "^(?!\\s*((?:[_\\w]+_|)RUBY)\\s*$)"
2009
+ }
2010
+ ]
2011
+ },
2012
+ {
2013
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)YA?ML)\\b\\1))",
2014
+ "end": "^\\s*((?:[_\\w]+_|)YA?ML)$\\n?",
2015
+ "endCaptures": {
2016
+ "0": {
2017
+ "name": "string.definition.end.ruby"
2018
+ }
2019
+ },
2020
+ "name": "meta.embedded.block.yaml",
2021
+ "patterns": [
2022
+ {
2023
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)YA?ML)\\b\\1)",
2024
+ "beginCaptures": {
2025
+ "0": {
2026
+ "name": "string.definition.begin.ruby"
2027
+ }
2028
+ },
2029
+ "contentName": "source.yaml",
2030
+ "patterns": [
2031
+ {
2032
+ "include": "#heredoc"
2033
+ },
2034
+ {
2035
+ "include": "#interpolated_ruby"
2036
+ },
2037
+ {
2038
+ "include": "source.yaml"
2039
+ },
2040
+ {
2041
+ "include": "#escaped_char"
2042
+ }
2043
+ ],
2044
+ "while": "^(?!\\s*((?:[_\\w]+_|)YA?ML)\\s*$)"
2045
+ }
2046
+ ]
2047
+ },
2048
+ {
2049
+ "begin": "(?=(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)SLIM)\\b\\1))",
2050
+ "end": "^\\s*((?:[_\\w]+_|)SLIM)$\\n?",
2051
+ "endCaptures": {
2052
+ "0": {
2053
+ "name": "string.definition.end.ruby"
2054
+ }
2055
+ },
2056
+ "name": "meta.embedded.block.slim",
2057
+ "patterns": [
2058
+ {
2059
+ "begin": "(?><<[-~]?([\"'`]?)((?:[_\\w]+_|)SLIM)\\b\\1)",
2060
+ "beginCaptures": {
2061
+ "0": {
2062
+ "name": "string.definition.begin.ruby"
2063
+ }
2064
+ },
2065
+ "contentName": "text.slim",
2066
+ "patterns": [
2067
+ {
2068
+ "include": "#heredoc"
2069
+ },
2070
+ {
2071
+ "include": "#interpolated_ruby"
2072
+ },
2073
+ {
2074
+ "include": "text.slim"
2075
+ },
2076
+ {
2077
+ "include": "#escaped_char"
2078
+ }
2079
+ ],
2080
+ "while": "^(?!\\s*((?:[_\\w]+_|)SLIM)\\s*$)"
2081
+ }
2082
+ ]
2083
+ },
2084
+ {
2085
+ "begin": "(?>=\\s*<<([\"'`]?)(\\w+)\\1)",
2086
+ "beginCaptures": {
2087
+ "0": {
2088
+ "name": "string.definition.begin.ruby"
2089
+ }
2090
+ },
2091
+ "contentName": "string.unquoted.heredoc.ruby",
2092
+ "end": "^\\2$",
2093
+ "endCaptures": {
2094
+ "0": {
2095
+ "name": "string.definition.end.ruby"
2096
+ }
2097
+ },
2098
+ "patterns": [
2099
+ {
2100
+ "include": "#heredoc"
2101
+ },
2102
+ {
2103
+ "include": "#interpolated_ruby"
2104
+ },
2105
+ {
2106
+ "include": "#escaped_char"
2107
+ }
2108
+ ]
2109
+ },
2110
+ {
2111
+ "begin": "(?>((<<[-~]?([\"'`]?)(\\w+)\\3,\\s?)*<<[-~]?([\"'`]?)(\\w+)\\5))(.*)",
2112
+ "beginCaptures": {
2113
+ "1": {
2114
+ "name": "string.definition.begin.ruby"
2115
+ },
2116
+ "7": {
2117
+ "patterns": [
2118
+ {
2119
+ "include": "source.ruby"
2120
+ }
2121
+ ]
2122
+ }
2123
+ },
2124
+ "contentName": "string.unquoted.heredoc.ruby",
2125
+ "end": "^\\s*\\6$",
2126
+ "endCaptures": {
2127
+ "0": {
2128
+ "name": "string.definition.end.ruby"
2129
+ }
2130
+ },
2131
+ "patterns": [
2132
+ {
2133
+ "include": "#heredoc"
2134
+ },
2135
+ {
2136
+ "include": "#interpolated_ruby"
2137
+ },
2138
+ {
2139
+ "include": "#escaped_char"
2140
+ }
2141
+ ]
2142
+ },
2143
+ {
2144
+ "begin": "(?<=\\{|\\{\\s+|[^$0-:@-Z_a-z]do|^do|[^$0-:@-Z_a-z]do\\s+|^do\\s+)(\\|)",
2145
+ "captures": {
2146
+ "1": {
2147
+ "name": "punctuation.separator.variable.ruby"
2148
+ }
2149
+ },
2150
+ "end": "(?<!\\|)(\\|)(?!\\|)",
2151
+ "name": "meta.block.parameters.ruby",
2152
+ "patterns": [
2153
+ {
2154
+ "begin": "(?![(,|\\s])",
2155
+ "end": "(?=,|\\|\\s*)",
2156
+ "patterns": [
2157
+ {
2158
+ "captures": {
2159
+ "1": {
2160
+ "name": "storage.type.variable.ruby"
2161
+ },
2162
+ "2": {
2163
+ "name": "variable.other.block.ruby"
2164
+ }
2165
+ },
2166
+ "match": "\\G((?:&|\\*\\*?)?)([A-Z_a-z][_\\w]*)"
2167
+ }
2168
+ ]
2169
+ },
2170
+ {
2171
+ "match": ",",
2172
+ "name": "punctuation.separator.variable.ruby"
2173
+ }
2174
+ ]
2175
+ },
2176
+ {
2177
+ "match": "=>",
2178
+ "name": "punctuation.separator.key-value"
2179
+ },
2180
+ {
2181
+ "match": "->",
2182
+ "name": "support.function.kernel.ruby"
2183
+ },
2184
+ {
2185
+ "match": "<<=|%=|&{1,2}=|\\*=|\\*\\*=|\\+=|-=|\\^=|\\|{1,2}=|<<",
2186
+ "name": "keyword.operator.assignment.augmented.ruby"
2187
+ },
2188
+ {
2189
+ "match": "<=>|<(?![<=])|>(?![<=>])|<=|>=|===?|=~|!=|!~|(?<=[\\t ])\\?",
2190
+ "name": "keyword.operator.comparison.ruby"
2191
+ },
2192
+ {
2193
+ "match": "(?<!\\.)\\b(and|not|or)\\b(?![!?])",
2194
+ "name": "keyword.operator.logical.ruby"
2195
+ },
2196
+ {
2197
+ "match": "(?<=^|[\\t !])!|&&|\\|\\||\\^",
2198
+ "name": "keyword.operator.logical.ruby"
2199
+ },
2200
+ {
2201
+ "captures": {
2202
+ "1": {
2203
+ "name": "keyword.operator.logical.ruby"
2204
+ }
2205
+ },
2206
+ "match": "(&\\.)\\s*(?![A-Z])"
2207
+ },
2208
+ {
2209
+ "match": "([%\\&]|\\*\\*|[-*+/])",
2210
+ "name": "keyword.operator.arithmetic.ruby"
2211
+ },
2212
+ {
2213
+ "match": "=",
2214
+ "name": "keyword.operator.assignment.ruby"
2215
+ },
2216
+ {
2217
+ "match": "[|~]|>>",
2218
+ "name": "keyword.operator.other.ruby"
2219
+ },
2220
+ {
2221
+ "match": ";",
2222
+ "name": "punctuation.separator.statement.ruby"
2223
+ },
2224
+ {
2225
+ "match": ",",
2226
+ "name": "punctuation.separator.object.ruby"
2227
+ },
2228
+ {
2229
+ "captures": {
2230
+ "1": {
2231
+ "name": "punctuation.separator.namespace.ruby"
2232
+ }
2233
+ },
2234
+ "match": "(::)\\s*(?=[A-Z])"
2235
+ },
2236
+ {
2237
+ "captures": {
2238
+ "1": {
2239
+ "name": "punctuation.separator.method.ruby"
2240
+ }
2241
+ },
2242
+ "match": "(\\.|::)\\s*(?![A-Z])"
2243
+ },
2244
+ {
2245
+ "match": ":",
2246
+ "name": "punctuation.separator.other.ruby"
2247
+ },
2248
+ {
2249
+ "match": "\\{",
2250
+ "name": "punctuation.section.scope.begin.ruby"
2251
+ },
2252
+ {
2253
+ "match": "}",
2254
+ "name": "punctuation.section.scope.end.ruby"
2255
+ },
2256
+ {
2257
+ "match": "\\[",
2258
+ "name": "punctuation.section.array.begin.ruby"
2259
+ },
2260
+ {
2261
+ "match": "]",
2262
+ "name": "punctuation.section.array.end.ruby"
2263
+ },
2264
+ {
2265
+ "match": "[()]",
2266
+ "name": "punctuation.section.function.ruby"
2267
+ },
2268
+ {
2269
+ "begin": "(?<=[^.]\\.|::)(?=[A-Za-z][!0-9?A-Z_a-z]*[^!0-9?A-Z_a-z])",
2270
+ "end": "(?<=[!0-9?A-Z_a-z])(?=[^!0-9?A-Z_a-z])",
2271
+ "name": "meta.function-call.ruby",
2272
+ "patterns": [
2273
+ {
2274
+ "match": "([A-Za-z][!0-9?A-Z_a-z]*)(?=[^!0-9?A-Z_a-z])",
2275
+ "name": "entity.name.function.ruby"
2276
+ }
2277
+ ]
2278
+ },
2279
+ {
2280
+ "begin": "([A-Za-z]\\w*[!?]?)(\\()",
2281
+ "beginCaptures": {
2282
+ "1": {
2283
+ "name": "entity.name.function.ruby"
2284
+ },
2285
+ "2": {
2286
+ "name": "punctuation.section.function.ruby"
2287
+ }
2288
+ },
2289
+ "end": "(\\))",
2290
+ "endCaptures": {
2291
+ "1": {
2292
+ "name": "punctuation.section.function.ruby"
2293
+ }
2294
+ },
2295
+ "name": "meta.function-call.ruby",
2296
+ "patterns": [
2297
+ {
2298
+ "include": "$self"
2299
+ }
2300
+ ]
2301
+ }
2302
+ ],
2303
+ "repository": {
2304
+ "escaped_char": {
2305
+ "match": "\\\\(?:[0-7]{1,3}|x[A-Fa-f\\d]{1,2}|.)",
2306
+ "name": "constant.character.escape.ruby"
2307
+ },
2308
+ "heredoc": {
2309
+ "begin": "^<<[-~]?\\w+",
2310
+ "end": "$",
2311
+ "patterns": [
2312
+ {
2313
+ "include": "$self"
2314
+ }
2315
+ ]
2316
+ },
2317
+ "interpolated_ruby": {
2318
+ "patterns": [
2319
+ {
2320
+ "begin": "#\\{",
2321
+ "beginCaptures": {
2322
+ "0": {
2323
+ "name": "punctuation.section.embedded.begin.ruby"
2324
+ }
2325
+ },
2326
+ "contentName": "source.ruby",
2327
+ "end": "}",
2328
+ "endCaptures": {
2329
+ "0": {
2330
+ "name": "punctuation.section.embedded.end.ruby"
2331
+ }
2332
+ },
2333
+ "name": "meta.embedded.line.ruby",
2334
+ "patterns": [
2335
+ {
2336
+ "include": "#nest_curly_and_self"
2337
+ },
2338
+ {
2339
+ "include": "$self"
2340
+ }
2341
+ ]
2342
+ },
2343
+ {
2344
+ "captures": {
2345
+ "1": {
2346
+ "name": "punctuation.definition.variable.ruby"
2347
+ }
2348
+ },
2349
+ "match": "(#@)[A-Z_a-z]\\w*",
2350
+ "name": "variable.other.readwrite.instance.ruby"
2351
+ },
2352
+ {
2353
+ "captures": {
2354
+ "1": {
2355
+ "name": "punctuation.definition.variable.ruby"
2356
+ }
2357
+ },
2358
+ "match": "(#@@)[A-Z_a-z]\\w*",
2359
+ "name": "variable.other.readwrite.class.ruby"
2360
+ },
2361
+ {
2362
+ "captures": {
2363
+ "1": {
2364
+ "name": "punctuation.definition.variable.ruby"
2365
+ }
2366
+ },
2367
+ "match": "(#\\$)[A-Z_a-z]\\w*",
2368
+ "name": "variable.other.readwrite.global.ruby"
2369
+ }
2370
+ ]
2371
+ },
2372
+ "method_parameters": {
2373
+ "patterns": [
2374
+ {
2375
+ "include": "#parens"
2376
+ },
2377
+ {
2378
+ "include": "#braces"
2379
+ },
2380
+ {
2381
+ "include": "#brackets"
2382
+ },
2383
+ {
2384
+ "include": "#params"
2385
+ },
2386
+ {
2387
+ "include": "$self"
2388
+ }
2389
+ ],
2390
+ "repository": {
2391
+ "braces": {
2392
+ "begin": "\\{",
2393
+ "beginCaptures": {
2394
+ "0": {
2395
+ "name": "punctuation.section.scope.begin.ruby"
2396
+ }
2397
+ },
2398
+ "end": "}",
2399
+ "endCaptures": {
2400
+ "0": {
2401
+ "name": "punctuation.section.scope.end.ruby"
2402
+ }
2403
+ },
2404
+ "patterns": [
2405
+ {
2406
+ "include": "#parens"
2407
+ },
2408
+ {
2409
+ "include": "#braces"
2410
+ },
2411
+ {
2412
+ "include": "#brackets"
2413
+ },
2414
+ {
2415
+ "include": "$self"
2416
+ }
2417
+ ]
2418
+ },
2419
+ "brackets": {
2420
+ "begin": "\\[",
2421
+ "beginCaptures": {
2422
+ "0": {
2423
+ "name": "punctuation.section.array.begin.ruby"
2424
+ }
2425
+ },
2426
+ "end": "]",
2427
+ "endCaptures": {
2428
+ "0": {
2429
+ "name": "punctuation.section.array.end.ruby"
2430
+ }
2431
+ },
2432
+ "patterns": [
2433
+ {
2434
+ "include": "#parens"
2435
+ },
2436
+ {
2437
+ "include": "#braces"
2438
+ },
2439
+ {
2440
+ "include": "#brackets"
2441
+ },
2442
+ {
2443
+ "include": "$self"
2444
+ }
2445
+ ]
2446
+ },
2447
+ "params": {
2448
+ "captures": {
2449
+ "1": {
2450
+ "name": "storage.type.variable.ruby"
2451
+ },
2452
+ "2": {
2453
+ "name": "constant.other.symbol.hashkey.parameter.function.ruby"
2454
+ },
2455
+ "3": {
2456
+ "name": "punctuation.definition.constant.ruby"
2457
+ },
2458
+ "4": {
2459
+ "name": "variable.parameter.function.ruby"
2460
+ }
2461
+ },
2462
+ "match": "\\G(&|\\*\\*?)?(?:([A-Z_a-z]\\w*[!?]?(:))|([A-Z_a-z]\\w*))"
2463
+ },
2464
+ "parens": {
2465
+ "begin": "\\(",
2466
+ "beginCaptures": {
2467
+ "0": {
2468
+ "name": "punctuation.section.function.begin.ruby"
2469
+ }
2470
+ },
2471
+ "end": "\\)",
2472
+ "endCaptures": {
2473
+ "0": {
2474
+ "name": "punctuation.section.function.end.ruby"
2475
+ }
2476
+ },
2477
+ "patterns": [
2478
+ {
2479
+ "include": "#parens"
2480
+ },
2481
+ {
2482
+ "include": "#braces"
2483
+ },
2484
+ {
2485
+ "include": "#brackets"
2486
+ },
2487
+ {
2488
+ "include": "$self"
2489
+ }
2490
+ ]
2491
+ }
2492
+ }
2493
+ },
2494
+ "nest_brackets": {
2495
+ "begin": "\\[",
2496
+ "captures": {
2497
+ "0": {
2498
+ "name": "punctuation.section.scope.ruby"
2499
+ }
2500
+ },
2501
+ "end": "]",
2502
+ "patterns": [
2503
+ {
2504
+ "include": "#nest_brackets"
2505
+ }
2506
+ ]
2507
+ },
2508
+ "nest_brackets_i": {
2509
+ "begin": "\\[",
2510
+ "captures": {
2511
+ "0": {
2512
+ "name": "punctuation.section.scope.ruby"
2513
+ }
2514
+ },
2515
+ "end": "]",
2516
+ "patterns": [
2517
+ {
2518
+ "include": "#interpolated_ruby"
2519
+ },
2520
+ {
2521
+ "include": "#escaped_char"
2522
+ },
2523
+ {
2524
+ "include": "#nest_brackets_i"
2525
+ }
2526
+ ]
2527
+ },
2528
+ "nest_brackets_r": {
2529
+ "begin": "\\[",
2530
+ "captures": {
2531
+ "0": {
2532
+ "name": "punctuation.section.scope.ruby"
2533
+ }
2534
+ },
2535
+ "end": "]",
2536
+ "patterns": [
2537
+ {
2538
+ "include": "#regex_sub"
2539
+ },
2540
+ {
2541
+ "include": "#nest_brackets_r"
2542
+ }
2543
+ ]
2544
+ },
2545
+ "nest_curly": {
2546
+ "begin": "\\{",
2547
+ "captures": {
2548
+ "0": {
2549
+ "name": "punctuation.section.scope.ruby"
2550
+ }
2551
+ },
2552
+ "end": "}",
2553
+ "patterns": [
2554
+ {
2555
+ "include": "#nest_curly"
2556
+ }
2557
+ ]
2558
+ },
2559
+ "nest_curly_and_self": {
2560
+ "patterns": [
2561
+ {
2562
+ "begin": "\\{",
2563
+ "captures": {
2564
+ "0": {
2565
+ "name": "punctuation.section.scope.ruby"
2566
+ }
2567
+ },
2568
+ "end": "}",
2569
+ "patterns": [
2570
+ {
2571
+ "include": "#nest_curly_and_self"
2572
+ }
2573
+ ]
2574
+ },
2575
+ {
2576
+ "include": "$self"
2577
+ }
2578
+ ]
2579
+ },
2580
+ "nest_curly_i": {
2581
+ "begin": "\\{",
2582
+ "captures": {
2583
+ "0": {
2584
+ "name": "punctuation.section.scope.ruby"
2585
+ }
2586
+ },
2587
+ "end": "}",
2588
+ "patterns": [
2589
+ {
2590
+ "include": "#interpolated_ruby"
2591
+ },
2592
+ {
2593
+ "include": "#escaped_char"
2594
+ },
2595
+ {
2596
+ "include": "#nest_curly_i"
2597
+ }
2598
+ ]
2599
+ },
2600
+ "nest_curly_r": {
2601
+ "begin": "\\{",
2602
+ "captures": {
2603
+ "0": {
2604
+ "name": "punctuation.section.scope.ruby"
2605
+ }
2606
+ },
2607
+ "end": "}",
2608
+ "patterns": [
2609
+ {
2610
+ "include": "#regex_sub"
2611
+ },
2612
+ {
2613
+ "include": "#nest_curly_r"
2614
+ }
2615
+ ]
2616
+ },
2617
+ "nest_ltgt": {
2618
+ "begin": "<",
2619
+ "captures": {
2620
+ "0": {
2621
+ "name": "punctuation.section.scope.ruby"
2622
+ }
2623
+ },
2624
+ "end": ">",
2625
+ "patterns": [
2626
+ {
2627
+ "include": "#nest_ltgt"
2628
+ }
2629
+ ]
2630
+ },
2631
+ "nest_ltgt_i": {
2632
+ "begin": "<",
2633
+ "captures": {
2634
+ "0": {
2635
+ "name": "punctuation.section.scope.ruby"
2636
+ }
2637
+ },
2638
+ "end": ">",
2639
+ "patterns": [
2640
+ {
2641
+ "include": "#interpolated_ruby"
2642
+ },
2643
+ {
2644
+ "include": "#escaped_char"
2645
+ },
2646
+ {
2647
+ "include": "#nest_ltgt_i"
2648
+ }
2649
+ ]
2650
+ },
2651
+ "nest_ltgt_r": {
2652
+ "begin": "<",
2653
+ "captures": {
2654
+ "0": {
2655
+ "name": "punctuation.section.scope.ruby"
2656
+ }
2657
+ },
2658
+ "end": ">",
2659
+ "patterns": [
2660
+ {
2661
+ "include": "#regex_sub"
2662
+ },
2663
+ {
2664
+ "include": "#nest_ltgt_r"
2665
+ }
2666
+ ]
2667
+ },
2668
+ "nest_parens": {
2669
+ "begin": "\\(",
2670
+ "captures": {
2671
+ "0": {
2672
+ "name": "punctuation.section.scope.ruby"
2673
+ }
2674
+ },
2675
+ "end": "\\)",
2676
+ "patterns": [
2677
+ {
2678
+ "include": "#nest_parens"
2679
+ }
2680
+ ]
2681
+ },
2682
+ "nest_parens_i": {
2683
+ "begin": "\\(",
2684
+ "captures": {
2685
+ "0": {
2686
+ "name": "punctuation.section.scope.ruby"
2687
+ }
2688
+ },
2689
+ "end": "\\)",
2690
+ "patterns": [
2691
+ {
2692
+ "include": "#interpolated_ruby"
2693
+ },
2694
+ {
2695
+ "include": "#escaped_char"
2696
+ },
2697
+ {
2698
+ "include": "#nest_parens_i"
2699
+ }
2700
+ ]
2701
+ },
2702
+ "nest_parens_r": {
2703
+ "begin": "\\(",
2704
+ "captures": {
2705
+ "0": {
2706
+ "name": "punctuation.section.scope.ruby"
2707
+ }
2708
+ },
2709
+ "end": "\\)",
2710
+ "patterns": [
2711
+ {
2712
+ "include": "#regex_sub"
2713
+ },
2714
+ {
2715
+ "include": "#nest_parens_r"
2716
+ }
2717
+ ]
2718
+ },
2719
+ "regex_sub": {
2720
+ "patterns": [
2721
+ {
2722
+ "include": "#interpolated_ruby"
2723
+ },
2724
+ {
2725
+ "include": "#escaped_char"
2726
+ },
2727
+ {
2728
+ "captures": {
2729
+ "1": {
2730
+ "name": "punctuation.definition.arbitrary-repetition.ruby"
2731
+ },
2732
+ "3": {
2733
+ "name": "punctuation.definition.arbitrary-repetition.ruby"
2734
+ }
2735
+ },
2736
+ "match": "(\\{)\\d+(,\\d+)?(})",
2737
+ "name": "string.regexp.arbitrary-repetition.ruby"
2738
+ },
2739
+ {
2740
+ "begin": "\\[(?:\\^?])?",
2741
+ "captures": {
2742
+ "0": {
2743
+ "name": "punctuation.definition.character-class.ruby"
2744
+ }
2745
+ },
2746
+ "end": "]",
2747
+ "name": "string.regexp.character-class.ruby",
2748
+ "patterns": [
2749
+ {
2750
+ "include": "#escaped_char"
2751
+ }
2752
+ ]
2753
+ },
2754
+ {
2755
+ "begin": "\\(\\?#",
2756
+ "beginCaptures": {
2757
+ "0": {
2758
+ "name": "punctuation.definition.comment.begin.ruby"
2759
+ }
2760
+ },
2761
+ "end": "\\)",
2762
+ "endCaptures": {
2763
+ "0": {
2764
+ "name": "punctuation.definition.comment.end.ruby"
2765
+ }
2766
+ },
2767
+ "name": "comment.line.number-sign.ruby",
2768
+ "patterns": [
2769
+ {
2770
+ "include": "#escaped_char"
2771
+ }
2772
+ ]
2773
+ },
2774
+ {
2775
+ "begin": "\\(",
2776
+ "captures": {
2777
+ "0": {
2778
+ "name": "punctuation.definition.group.ruby"
2779
+ }
2780
+ },
2781
+ "end": "\\)",
2782
+ "name": "string.regexp.group.ruby",
2783
+ "patterns": [
2784
+ {
2785
+ "include": "#regex_sub"
2786
+ }
2787
+ ]
2788
+ },
2789
+ {
2790
+ "begin": "(?<=^|\\s)(#)\\s(?=[-\\t !,.0-9?A-Za-z[^\\x00-\\x7F]]*$)",
2791
+ "beginCaptures": {
2792
+ "1": {
2793
+ "name": "punctuation.definition.comment.ruby"
2794
+ }
2795
+ },
2796
+ "end": "$\\n?",
2797
+ "endCaptures": {
2798
+ "0": {
2799
+ "name": "punctuation.definition.comment.ruby"
2800
+ }
2801
+ },
2802
+ "name": "comment.line.number-sign.ruby"
2803
+ }
2804
+ ]
2805
+ },
2806
+ "yard": {
2807
+ "patterns": [
2808
+ {
2809
+ "include": "#yard_comment"
2810
+ },
2811
+ {
2812
+ "include": "#yard_param_types"
2813
+ },
2814
+ {
2815
+ "include": "#yard_option"
2816
+ },
2817
+ {
2818
+ "include": "#yard_tag"
2819
+ },
2820
+ {
2821
+ "include": "#yard_types"
2822
+ },
2823
+ {
2824
+ "include": "#yard_directive"
2825
+ },
2826
+ {
2827
+ "include": "#yard_see"
2828
+ },
2829
+ {
2830
+ "include": "#yard_macro_attribute"
2831
+ }
2832
+ ]
2833
+ },
2834
+ "yard_comment": {
2835
+ "begin": "^(\\s*)(#)(\\s*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\\s|$)",
2836
+ "beginCaptures": {
2837
+ "2": {
2838
+ "name": "punctuation.definition.comment.ruby"
2839
+ },
2840
+ "4": {
2841
+ "name": "comment.line.keyword.punctuation.yard.ruby"
2842
+ },
2843
+ "5": {
2844
+ "name": "comment.line.keyword.yard.ruby"
2845
+ }
2846
+ },
2847
+ "contentName": "comment.line.string.yard.ruby",
2848
+ "end": "^(?!\\s*#\\3\\s{2,}|\\s*#\\s*$)",
2849
+ "name": "comment.line.number-sign.ruby",
2850
+ "patterns": [
2851
+ {
2852
+ "include": "#yard"
2853
+ },
2854
+ {
2855
+ "include": "#yard_continuation"
2856
+ }
2857
+ ]
2858
+ },
2859
+ "yard_continuation": {
2860
+ "match": "^\\s*#",
2861
+ "name": "punctuation.definition.comment.ruby"
2862
+ },
2863
+ "yard_directive": {
2864
+ "begin": "^(\\s*)(#)(\\s*)(@!)(endgroup|group|method|parse|scope|visibility)(\\s+((\\[).+(])))?(?=\\s)",
2865
+ "beginCaptures": {
2866
+ "2": {
2867
+ "name": "punctuation.definition.comment.ruby"
2868
+ },
2869
+ "4": {
2870
+ "name": "comment.line.keyword.punctuation.yard.ruby"
2871
+ },
2872
+ "5": {
2873
+ "name": "comment.line.keyword.yard.ruby"
2874
+ },
2875
+ "7": {
2876
+ "name": "comment.line.type.yard.ruby"
2877
+ },
2878
+ "8": {
2879
+ "name": "comment.line.punctuation.yard.ruby"
2880
+ },
2881
+ "9": {
2882
+ "name": "comment.line.punctuation.yard.ruby"
2883
+ }
2884
+ },
2885
+ "contentName": "comment.line.string.yard.ruby",
2886
+ "end": "^(?!\\s*#\\3\\s{2,}|\\s*#\\s*$)",
2887
+ "name": "comment.line.number-sign.ruby",
2888
+ "patterns": [
2889
+ {
2890
+ "include": "#yard"
2891
+ },
2892
+ {
2893
+ "include": "#yard_continuation"
2894
+ }
2895
+ ]
2896
+ },
2897
+ "yard_macro_attribute": {
2898
+ "begin": "^(\\s*)(#)(\\s*)(@!)(attribute|macro)(\\s+((\\[).+(])))?(?=\\s)(\\s+([_a-z]\\w*:?))?",
2899
+ "beginCaptures": {
2900
+ "11": {
2901
+ "name": "comment.line.parameter.yard.ruby"
2902
+ },
2903
+ "2": {
2904
+ "name": "punctuation.definition.comment.ruby"
2905
+ },
2906
+ "4": {
2907
+ "name": "comment.line.keyword.punctuation.yard.ruby"
2908
+ },
2909
+ "5": {
2910
+ "name": "comment.line.keyword.yard.ruby"
2911
+ },
2912
+ "7": {
2913
+ "name": "comment.line.type.yard.ruby"
2914
+ },
2915
+ "8": {
2916
+ "name": "comment.line.punctuation.yard.ruby"
2917
+ },
2918
+ "9": {
2919
+ "name": "comment.line.punctuation.yard.ruby"
2920
+ }
2921
+ },
2922
+ "contentName": "comment.line.string.yard.ruby",
2923
+ "end": "^(?!\\s*#\\3\\s{2,}|\\s*#\\s*$)",
2924
+ "name": "comment.line.number-sign.ruby",
2925
+ "patterns": [
2926
+ {
2927
+ "include": "#yard"
2928
+ },
2929
+ {
2930
+ "include": "#yard_continuation"
2931
+ }
2932
+ ]
2933
+ },
2934
+ "yard_option": {
2935
+ "begin": "^(\\s*)(#)(\\s*)(@)(option)(?=\\s)(?>\\s+([_a-z]\\w*:?))?(?>\\s+((\\[).+(])))?(?>\\s+((\\S*)))?(?>\\s+((\\().+(\\))))?",
2936
+ "beginCaptures": {
2937
+ "10": {
2938
+ "name": "comment.line.keyword.yard.ruby"
2939
+ },
2940
+ "11": {
2941
+ "name": "comment.line.hashkey.yard.ruby"
2942
+ },
2943
+ "12": {
2944
+ "name": "comment.line.defaultvalue.yard.ruby"
2945
+ },
2946
+ "13": {
2947
+ "name": "comment.line.punctuation.yard.ruby"
2948
+ },
2949
+ "14": {
2950
+ "name": "comment.line.punctuation.yard.ruby"
2951
+ },
2952
+ "2": {
2953
+ "name": "punctuation.definition.comment.ruby"
2954
+ },
2955
+ "4": {
2956
+ "name": "comment.line.keyword.punctuation.yard.ruby"
2957
+ },
2958
+ "5": {
2959
+ "name": "comment.line.keyword.yard.ruby"
2960
+ },
2961
+ "6": {
2962
+ "name": "comment.line.parameter.yard.ruby"
2963
+ },
2964
+ "7": {
2965
+ "name": "comment.line.type.yard.ruby"
2966
+ },
2967
+ "8": {
2968
+ "name": "comment.line.punctuation.yard.ruby"
2969
+ },
2970
+ "9": {
2971
+ "name": "comment.line.punctuation.yard.ruby"
2972
+ }
2973
+ },
2974
+ "contentName": "comment.line.string.yard.ruby",
2975
+ "end": "^(?!\\s*#\\3\\s{2,}|\\s*#\\s*$)",
2976
+ "name": "comment.line.number-sign.ruby",
2977
+ "patterns": [
2978
+ {
2979
+ "include": "#yard"
2980
+ },
2981
+ {
2982
+ "include": "#yard_continuation"
2983
+ }
2984
+ ]
2985
+ },
2986
+ "yard_param_types": {
2987
+ "begin": "^(\\s*)(#)(\\s*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\s)(?>\\s+(?>([_a-z]\\w*:?)|((\\[).+(]))))?(?>\\s+(?>((\\[).+(]))|([_a-z]\\w*:?)))?",
2988
+ "beginCaptures": {
2989
+ "10": {
2990
+ "name": "comment.line.type.yard.ruby"
2991
+ },
2992
+ "11": {
2993
+ "name": "comment.line.punctuation.yard.ruby"
2994
+ },
2995
+ "12": {
2996
+ "name": "comment.line.punctuation.yard.ruby"
2997
+ },
2998
+ "13": {
2999
+ "name": "comment.line.parameter.yard.ruby"
3000
+ },
3001
+ "2": {
3002
+ "name": "punctuation.definition.comment.ruby"
3003
+ },
3004
+ "4": {
3005
+ "name": "comment.line.keyword.punctuation.yard.ruby"
3006
+ },
3007
+ "5": {
3008
+ "name": "comment.line.keyword.yard.ruby"
3009
+ },
3010
+ "6": {
3011
+ "name": "comment.line.parameter.yard.ruby"
3012
+ },
3013
+ "7": {
3014
+ "name": "comment.line.type.yard.ruby"
3015
+ },
3016
+ "8": {
3017
+ "name": "comment.line.punctuation.yard.ruby"
3018
+ },
3019
+ "9": {
3020
+ "name": "comment.line.punctuation.yard.ruby"
3021
+ }
3022
+ },
3023
+ "contentName": "comment.line.string.yard.ruby",
3024
+ "end": "^(?!\\s*#\\3\\s{2,}|\\s*#\\s*$)",
3025
+ "name": "comment.line.number-sign.ruby",
3026
+ "patterns": [
3027
+ {
3028
+ "include": "#yard"
3029
+ },
3030
+ {
3031
+ "include": "#yard_continuation"
3032
+ }
3033
+ ]
3034
+ },
3035
+ "yard_see": {
3036
+ "begin": "^(\\s*)(#)(\\s*)(@)(see)(?=\\s)(\\s+(.+?))?(?=\\s|$)",
3037
+ "beginCaptures": {
3038
+ "2": {
3039
+ "name": "punctuation.definition.comment.ruby"
3040
+ },
3041
+ "4": {
3042
+ "name": "comment.line.keyword.punctuation.yard.ruby"
3043
+ },
3044
+ "5": {
3045
+ "name": "comment.line.keyword.yard.ruby"
3046
+ },
3047
+ "7": {
3048
+ "name": "comment.line.parameter.yard.ruby"
3049
+ }
3050
+ },
3051
+ "contentName": "comment.line.string.yard.ruby",
3052
+ "end": "^(?!\\s*#\\3\\s{2,}|\\s*#\\s*$)",
3053
+ "name": "comment.line.number-sign.ruby",
3054
+ "patterns": [
3055
+ {
3056
+ "include": "#yard"
3057
+ },
3058
+ {
3059
+ "include": "#yard_continuation"
3060
+ }
3061
+ ]
3062
+ },
3063
+ "yard_tag": {
3064
+ "captures": {
3065
+ "2": {
3066
+ "name": "punctuation.definition.comment.ruby"
3067
+ },
3068
+ "4": {
3069
+ "name": "comment.line.keyword.punctuation.yard.ruby"
3070
+ },
3071
+ "5": {
3072
+ "name": "comment.line.keyword.yard.ruby"
3073
+ }
3074
+ },
3075
+ "match": "^(\\s*)(#)(\\s*)(@)(private)$",
3076
+ "name": "comment.line.number-sign.ruby"
3077
+ },
3078
+ "yard_types": {
3079
+ "begin": "^(\\s*)(#)(\\s*)(@)(raise|return|yield(?:return)?)(?=\\s)(\\s+((\\[).+(])))?",
3080
+ "beginCaptures": {
3081
+ "2": {
3082
+ "name": "punctuation.definition.comment.ruby"
3083
+ },
3084
+ "4": {
3085
+ "name": "comment.line.keyword.punctuation.yard.ruby"
3086
+ },
3087
+ "5": {
3088
+ "name": "comment.line.keyword.yard.ruby"
3089
+ },
3090
+ "7": {
3091
+ "name": "comment.line.type.yard.ruby"
3092
+ },
3093
+ "8": {
3094
+ "name": "comment.line.punctuation.yard.ruby"
3095
+ },
3096
+ "9": {
3097
+ "name": "comment.line.punctuation.yard.ruby"
3098
+ }
3099
+ },
3100
+ "contentName": "comment.line.string.yard.ruby",
3101
+ "end": "^(?!\\s*#\\3\\s{2,}|\\s*#\\s*$)",
3102
+ "name": "comment.line.number-sign.ruby",
3103
+ "patterns": [
3104
+ {
3105
+ "include": "#yard"
3106
+ },
3107
+ {
3108
+ "include": "#yard_continuation"
3109
+ }
3110
+ ]
3111
+ }
3112
+ },
3113
+ "scopeName": "source.ruby"
3114
+ }