tm-grammars 1.25.3 → 1.27.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.
@@ -115,54 +115,100 @@
115
115
  "strings": {
116
116
  "patterns": [
117
117
  {
118
- "begin": "([\"'])",
119
- "end": "\\1",
120
- "name": "string.quoted.double.berry",
118
+ "begin": "f(?=[\"'])",
121
119
  "patterns": [
122
120
  {
123
- "match": "(\\\\x\\h{2})|(\\\\[0-7]{3})|(\\\\\\\\)|(\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)",
124
- "name": "constant.character.escape.berry"
125
- }
126
- ]
127
- },
128
- {
129
- "begin": "f([\"'])",
130
- "end": "\\1",
131
- "name": "string.quoted.other.berry",
132
- "patterns": [
133
- {
134
- "match": "(\\\\x\\h{2})|(\\\\[0-7]{3})|(\\\\\\\\)|(\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)",
135
- "name": "constant.character.escape.berry"
136
- },
137
- {
138
- "match": "\\{\\{[^}]*}}",
139
- "name": "string.quoted.other.berry"
140
- },
141
- {
142
- "begin": "\\{",
143
- "end": "}",
144
- "name": "keyword.other.unit.berry",
121
+ "begin": "\"",
122
+ "end": "\"",
123
+ "name": "string.quoted.other.berry",
145
124
  "patterns": [
146
125
  {
147
- "include": "#keywords"
126
+ "match": "(\\\\x\\h{2})|(\\\\[0-7]{3})|(\\\\\\\\)|(\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)",
127
+ "name": "constant.character.escape.berry"
148
128
  },
149
129
  {
150
- "include": "#numbers"
130
+ "match": "\\{\\{[^}]*}}",
131
+ "name": "string.quoted.other.berry"
151
132
  },
152
133
  {
153
- "include": "#identifier"
154
- },
134
+ "begin": "\\{",
135
+ "end": "}",
136
+ "name": "keyword.other.unit.berry",
137
+ "patterns": [
138
+ {
139
+ "include": "#keywords"
140
+ },
141
+ {
142
+ "include": "#numbers"
143
+ },
144
+ {
145
+ "include": "#identifier"
146
+ },
147
+ {
148
+ "include": "#operator"
149
+ },
150
+ {
151
+ "include": "#member"
152
+ },
153
+ {
154
+ "include": "#function"
155
+ }
156
+ ]
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "begin": "'",
162
+ "end": "'",
163
+ "name": "string.quoted.other.berry",
164
+ "patterns": [
155
165
  {
156
- "include": "#operator"
166
+ "match": "(\\\\x\\h{2})|(\\\\[0-7]{3})|(\\\\\\\\)|(\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)",
167
+ "name": "constant.character.escape.berry"
157
168
  },
158
169
  {
159
- "include": "#member"
170
+ "match": "\\{\\{[^}]*}}",
171
+ "name": "string.quoted.other.berry"
160
172
  },
161
173
  {
162
- "include": "#function"
174
+ "begin": "\\{",
175
+ "end": "}",
176
+ "name": "keyword.other.unit.berry",
177
+ "patterns": [
178
+ {
179
+ "include": "#keywords"
180
+ },
181
+ {
182
+ "include": "#numbers"
183
+ },
184
+ {
185
+ "include": "#identifier"
186
+ },
187
+ {
188
+ "include": "#operator"
189
+ },
190
+ {
191
+ "include": "#member"
192
+ },
193
+ {
194
+ "include": "#function"
195
+ }
196
+ ]
163
197
  }
164
198
  ]
165
199
  }
200
+ ],
201
+ "while": "\\G|^[\\t ]*(?=[\"'])"
202
+ },
203
+ {
204
+ "begin": "([\"'])",
205
+ "end": "\\1",
206
+ "name": "string.quoted.double.berry",
207
+ "patterns": [
208
+ {
209
+ "match": "(\\\\x\\h{2})|(\\\\[0-7]{3})|(\\\\\\\\)|(\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)",
210
+ "name": "constant.character.escape.berry"
211
+ }
166
212
  ]
167
213
  }
168
214
  ]
@@ -1051,7 +1051,7 @@
1051
1051
  }
1052
1052
  },
1053
1053
  "contentName": "text.html",
1054
- "end": "^(\\3)\\b",
1054
+ "end": "^\\s*(\\3)\\b",
1055
1055
  "endCaptures": {
1056
1056
  "0": {
1057
1057
  "name": "punctuation.section.embedded.end.php"
@@ -1070,6 +1070,45 @@
1070
1070
  }
1071
1071
  ]
1072
1072
  },
1073
+ {
1074
+ "begin": "(<<<)\\s*(\"?)(BLADE)(\\2)(\\s*)$",
1075
+ "beginCaptures": {
1076
+ "0": {
1077
+ "name": "punctuation.section.embedded.begin.php"
1078
+ },
1079
+ "1": {
1080
+ "name": "punctuation.definition.string.php"
1081
+ },
1082
+ "3": {
1083
+ "name": "keyword.operator.heredoc.php"
1084
+ },
1085
+ "5": {
1086
+ "name": "invalid.illegal.trailing-whitespace.php"
1087
+ }
1088
+ },
1089
+ "contentName": "text.blade",
1090
+ "end": "^\\s*(\\3)\\b",
1091
+ "endCaptures": {
1092
+ "0": {
1093
+ "name": "punctuation.section.embedded.end.php"
1094
+ },
1095
+ "1": {
1096
+ "name": "keyword.operator.heredoc.php"
1097
+ }
1098
+ },
1099
+ "name": "meta.embedded.blade",
1100
+ "patterns": [
1101
+ {
1102
+ "include": "#interpolation"
1103
+ },
1104
+ {
1105
+ "include": "text.html.basic"
1106
+ },
1107
+ {
1108
+ "include": "#blade"
1109
+ }
1110
+ ]
1111
+ },
1073
1112
  {
1074
1113
  "begin": "(<<<)\\s*(\"?)(XML)(\\2)(\\s*)$",
1075
1114
  "beginCaptures": {
@@ -1087,7 +1126,7 @@
1087
1126
  }
1088
1127
  },
1089
1128
  "contentName": "text.xml",
1090
- "end": "^(\\3)\\b",
1129
+ "end": "^\\s*(\\3)\\b",
1091
1130
  "endCaptures": {
1092
1131
  "0": {
1093
1132
  "name": "punctuation.section.embedded.end.php"
@@ -1123,7 +1162,7 @@
1123
1162
  }
1124
1163
  },
1125
1164
  "contentName": "source.sql",
1126
- "end": "^(\\3)\\b",
1165
+ "end": "^\\s*(\\3)\\b",
1127
1166
  "endCaptures": {
1128
1167
  "0": {
1129
1168
  "name": "punctuation.section.embedded.end.php"
@@ -1159,7 +1198,7 @@
1159
1198
  }
1160
1199
  },
1161
1200
  "contentName": "source.js",
1162
- "end": "^(\\3)\\b",
1201
+ "end": "^\\s*(\\3)\\b",
1163
1202
  "endCaptures": {
1164
1203
  "0": {
1165
1204
  "name": "punctuation.section.embedded.end.php"
@@ -1195,7 +1234,7 @@
1195
1234
  }
1196
1235
  },
1197
1236
  "contentName": "source.json",
1198
- "end": "^(\\3)\\b",
1237
+ "end": "^\\s*(\\3)\\b",
1199
1238
  "endCaptures": {
1200
1239
  "0": {
1201
1240
  "name": "punctuation.section.embedded.end.php"
@@ -1231,7 +1270,7 @@
1231
1270
  }
1232
1271
  },
1233
1272
  "contentName": "source.css",
1234
- "end": "^(\\3)\\b",
1273
+ "end": "^\\s*(\\3)\\b",
1235
1274
  "endCaptures": {
1236
1275
  "0": {
1237
1276
  "name": "punctuation.section.embedded.end.php"
@@ -1267,7 +1306,7 @@
1267
1306
  }
1268
1307
  },
1269
1308
  "contentName": "string.regexp.heredoc.php",
1270
- "end": "^(\\3)\\b",
1309
+ "end": "^\\s*(\\3)\\b",
1271
1310
  "endCaptures": {
1272
1311
  "0": {
1273
1312
  "name": "punctuation.section.embedded.end.php"
@@ -1346,7 +1385,7 @@
1346
1385
  "name": "invalid.illegal.trailing-whitespace.php"
1347
1386
  }
1348
1387
  },
1349
- "end": "^(\\3)\\b",
1388
+ "end": "^\\s*(\\3)\\b",
1350
1389
  "endCaptures": {
1351
1390
  "1": {
1352
1391
  "name": "keyword.operator.heredoc.php"
@@ -2266,7 +2305,7 @@
2266
2305
  }
2267
2306
  },
2268
2307
  "contentName": "text.html",
2269
- "end": "^(\\2)\\b",
2308
+ "end": "^\\s*(\\2)\\b",
2270
2309
  "endCaptures": {
2271
2310
  "0": {
2272
2311
  "name": "punctuation.section.embedded.end.php"
@@ -2282,6 +2321,42 @@
2282
2321
  }
2283
2322
  ]
2284
2323
  },
2324
+ {
2325
+ "begin": "(<<<)\\s*'(BLADE)'(\\s*)$",
2326
+ "beginCaptures": {
2327
+ "0": {
2328
+ "name": "punctuation.section.embedded.begin.php"
2329
+ },
2330
+ "1": {
2331
+ "name": "punctuation.definition.string.php"
2332
+ },
2333
+ "2": {
2334
+ "name": "keyword.operator.nowdoc.php"
2335
+ },
2336
+ "3": {
2337
+ "name": "invalid.illegal.trailing-whitespace.php"
2338
+ }
2339
+ },
2340
+ "contentName": "text.blade",
2341
+ "end": "^\\s*(\\2)\\b",
2342
+ "endCaptures": {
2343
+ "0": {
2344
+ "name": "punctuation.section.embedded.end.php"
2345
+ },
2346
+ "1": {
2347
+ "name": "keyword.operator.nowdoc.php"
2348
+ }
2349
+ },
2350
+ "name": "meta.embedded.blade",
2351
+ "patterns": [
2352
+ {
2353
+ "include": "text.html.basic"
2354
+ },
2355
+ {
2356
+ "include": "#blade"
2357
+ }
2358
+ ]
2359
+ },
2285
2360
  {
2286
2361
  "begin": "(<<<)\\s*'(XML)'(\\s*)$",
2287
2362
  "beginCaptures": {
@@ -2299,7 +2374,7 @@
2299
2374
  }
2300
2375
  },
2301
2376
  "contentName": "text.xml",
2302
- "end": "^(\\2)\\b",
2377
+ "end": "^\\s*(\\2)\\b",
2303
2378
  "endCaptures": {
2304
2379
  "0": {
2305
2380
  "name": "punctuation.section.embedded.end.php"
@@ -2332,7 +2407,7 @@
2332
2407
  }
2333
2408
  },
2334
2409
  "contentName": "source.sql",
2335
- "end": "^(\\2)\\b",
2410
+ "end": "^\\s*(\\2)\\b",
2336
2411
  "endCaptures": {
2337
2412
  "0": {
2338
2413
  "name": "punctuation.section.embedded.end.php"
@@ -2365,7 +2440,7 @@
2365
2440
  }
2366
2441
  },
2367
2442
  "contentName": "source.js",
2368
- "end": "^(\\2)\\b",
2443
+ "end": "^\\s*(\\2)\\b",
2369
2444
  "endCaptures": {
2370
2445
  "0": {
2371
2446
  "name": "punctuation.section.embedded.end.php"
@@ -2398,7 +2473,7 @@
2398
2473
  }
2399
2474
  },
2400
2475
  "contentName": "source.json",
2401
- "end": "^(\\2)\\b",
2476
+ "end": "^\\s*(\\2)\\b",
2402
2477
  "endCaptures": {
2403
2478
  "0": {
2404
2479
  "name": "punctuation.section.embedded.end.php"
@@ -2431,7 +2506,7 @@
2431
2506
  }
2432
2507
  },
2433
2508
  "contentName": "source.css",
2434
- "end": "^(\\2)\\b",
2509
+ "end": "^\\s*(\\2)\\b",
2435
2510
  "endCaptures": {
2436
2511
  "0": {
2437
2512
  "name": "punctuation.section.embedded.end.php"
@@ -2464,7 +2539,7 @@
2464
2539
  }
2465
2540
  },
2466
2541
  "contentName": "string.regexp.nowdoc.php",
2467
- "end": "^(\\2)\\b",
2542
+ "end": "^\\s*(\\2)\\b",
2468
2543
  "endCaptures": {
2469
2544
  "0": {
2470
2545
  "name": "punctuation.section.embedded.end.php"
@@ -2540,7 +2615,7 @@
2540
2615
  "name": "invalid.illegal.trailing-whitespace.php"
2541
2616
  }
2542
2617
  },
2543
- "end": "^(\\2)\\b",
2618
+ "end": "^\\s*(\\2)\\b",
2544
2619
  "endCaptures": {
2545
2620
  "1": {
2546
2621
  "name": "keyword.operator.nowdoc.php"