tm-grammars 1.32.16 → 1.32.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,7 +38,7 @@ import { grammars } from 'tm-grammars'
38
38
  | `awk` | | [luggage66/vscode-awk](https://github.com/luggage66/vscode-awk/blob/eff8c0f160ae16592c8d9963fd77046137fd2612/syntaxes/awk.tmLanguage) | [MIT](https://raw.githubusercontent.com/luggage66/vscode-awk/master/LICENSE.txt) | | | 5.16 kB |
39
39
  | `ballerina` | | [ballerina-platform/ballerina-grammar](https://github.com/ballerina-platform/ballerina-grammar/blob/4bf70d328ae9e5a93219e44c031ab3776c76727a/syntaxes/ballerina.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/ballerina-platform/ballerina-grammar/master/LICENSE) | | | 55.03 kB |
40
40
  | `bat` | `batch` `cmd` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/df15c8e832a341633acd2e9bb26e1b275d09cfe0/extensions/bat/syntaxes/batchfile.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 12.29 kB |
41
- | `beancount` | | [Lencerf/vscode-beancount](https://github.com/Lencerf/vscode-beancount/blob/75fc29960fcf6666e4b06310fac4d49a16c57ca0/syntaxes/beancount.tmLanguage) | [MIT](https://raw.githubusercontent.com/Lencerf/vscode-beancount/master/LICENSE) | | | 9.90 kB |
41
+ | `beancount` | | [Lencerf/vscode-beancount](https://github.com/Lencerf/vscode-beancount/blob/60dcdbd3af273aca0ff628220f2828483101ca47/syntaxes/beancount.tmLanguage) | [MIT](https://raw.githubusercontent.com/Lencerf/vscode-beancount/master/LICENSE) | | | 12.26 kB |
42
42
  | `berry` | `be` | [berry-lang/berry](https://github.com/berry-lang/berry/blob/74611286b8d2d2c2ee16ea187029f2a9c4257f5f/tools/plugins/vscode/skiars.berry-1.2.0/syntaxes/berry.json) | [MIT](https://raw.githubusercontent.com/berry-lang/berry/master/LICENSE) | | | 2.63 kB |
43
43
  | `bibtex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9a2c94d213696a4453b6d9988b003d98e7646e75/extensions/latex/syntaxes/Bibtex.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 4.51 kB |
44
44
  | `bicep` | | [Azure/bicep](https://github.com/Azure/bicep/blob/6252abb94141fc6e774a53652404be30f1cb9000/src/textmate/bicep.tmlanguage) | [MIT](https://raw.githubusercontent.com/Azure/bicep/main/LICENSE) | | | 4.92 kB |
@@ -325,6 +325,106 @@
325
325
  }
326
326
  ]
327
327
  },
328
+ {
329
+ "begin": "([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\s+(query)\\s+(\"(?:[^\"\\\\]|\\\\.)*\")\\s+(\")",
330
+ "beginCaptures": {
331
+ "1": {
332
+ "name": "constant.numeric.date.year.beancount"
333
+ },
334
+ "2": {
335
+ "name": "punctuation.separator.beancount"
336
+ },
337
+ "3": {
338
+ "name": "constant.numeric.date.month.beancount"
339
+ },
340
+ "4": {
341
+ "name": "punctuation.separator.beancount"
342
+ },
343
+ "5": {
344
+ "name": "constant.numeric.date.day.beancount"
345
+ },
346
+ "6": {
347
+ "name": "support.function.directive.beancount"
348
+ },
349
+ "7": {
350
+ "name": "string.quoted.double.beancount"
351
+ },
352
+ "8": {
353
+ "name": "punctuation.definition.string.begin.beancount"
354
+ }
355
+ },
356
+ "end": "(\")",
357
+ "endCaptures": {
358
+ "1": {
359
+ "name": "punctuation.definition.string.end.beancount"
360
+ }
361
+ },
362
+ "name": "meta.directive.query.beancount",
363
+ "patterns": [
364
+ {
365
+ "include": "#comments"
366
+ },
367
+ {
368
+ "begin": "/\\*",
369
+ "end": "\\*/",
370
+ "name": "comment.block.bql"
371
+ },
372
+ {
373
+ "match": "\\b[0-9]{4}-[0-9]{2}-[0-9]{2}\\b",
374
+ "name": "constant.numeric.date.bql"
375
+ },
376
+ {
377
+ "match": "\\b(?i:SELECT|FROM|WHERE|GROUP|ORDER|HAVING|LIMIT|PIVOT|AND|OR|NOT|IN|IS|BETWEEN|AS|DISTINCT|ASC|DESC|TRUE|FALSE|NULL|CREATE|TABLE|USING|INSERT|INTO|BALANCES|JOURNAL|PRINT|BY)\\b",
378
+ "name": "keyword.control.bql"
379
+ },
380
+ {
381
+ "match": "\\b(?i:abs|bool|int|decimal|str|date|year|month|day|yearmonth|quarter|weekday|today|root|parent|leaf|grepn??|subst|upper|lower|maxwidth|substr|splitcomp|length|repr|round|safediv|neg|open_date|close_date|open_meta|meta|entry_meta|any_meta|currency_meta|commodity_meta|account_sortkey|has_account|units|cost|value|getprice|number|currency|commodity|findfirst|joinstr|only|empty|filter_currency|convert|parse_date|date_diff|date_add|date_trunc|date_part|interval|date_bin|getitem|possign|sum|count|first|last|min|max)\\b(?=\\s*\\()",
382
+ "name": "support.function.bql"
383
+ },
384
+ {
385
+ "match": "\\b(?i:id|type|filename|lineno|location|date|year|month|day|flag|payee|narration|description|tags|links|meta|accounts?|other_accounts|posting_flag|number|currency|cost_number|cost_currency|cost_date|cost_label|position|price|weight|balance|entry)\\b",
386
+ "name": "variable.other.column.bql"
387
+ },
388
+ {
389
+ "begin": "\"",
390
+ "end": "\"",
391
+ "name": "string.quoted.double.bql",
392
+ "patterns": [
393
+ {
394
+ "match": "\"\"",
395
+ "name": "constant.character.escape.bql"
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "begin": "'",
401
+ "end": "'",
402
+ "name": "string.quoted.single.bql",
403
+ "patterns": [
404
+ {
405
+ "match": "''",
406
+ "name": "constant.character.escape.bql"
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ "match": "\\b\\d+(\\.\\d+)?\\b",
412
+ "name": "constant.numeric.bql"
413
+ },
414
+ {
415
+ "match": "<=|>=|!=|[<=>]|\\?~|!~|~",
416
+ "name": "keyword.operator.comparison.bql"
417
+ },
418
+ {
419
+ "match": "[-%*+/]",
420
+ "name": "keyword.operator.arithmetic.bql"
421
+ },
422
+ {
423
+ "match": "[(),]",
424
+ "name": "punctuation.bql"
425
+ }
426
+ ]
427
+ },
328
428
  {
329
429
  "begin": "([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\s(price)",
330
430
  "beginCaptures": {
package/index.js CHANGED
@@ -442,19 +442,19 @@ export const grammars = [
442
442
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/bat/syntaxes/batchfile.tmLanguage.json?ref=df15c8e832a341633acd2e9bb26e1b275d09cfe0',
443
443
  },
444
444
  {
445
- byteSize: 10133,
445
+ byteSize: 12556,
446
446
  displayName: 'Beancount',
447
447
  funding: [
448
448
  ],
449
- hash: 'jpKPT3sRW7Nshq0bSM7Y-mmstCJUMvWOblCqHRnleTY',
450
- lastUpdate: '2024-10-02T08:25:15Z',
449
+ hash: 'Oae9U_FYogMNm9-KQP5sf1p65hQFP85gkIHL4XH_Wgg',
450
+ lastUpdate: '2026-09-07T21:38:06Z',
451
451
  license: 'MIT',
452
452
  licenseUrl: 'https://raw.githubusercontent.com/Lencerf/vscode-beancount/master/LICENSE',
453
453
  name: 'beancount',
454
454
  scopeName: 'text.beancount',
455
- sha: '75fc29960fcf6666e4b06310fac4d49a16c57ca0',
456
- source: 'https://github.com/Lencerf/vscode-beancount/blob/75fc29960fcf6666e4b06310fac4d49a16c57ca0/syntaxes/beancount.tmLanguage',
457
- sourceApi: 'https://api.github.com/repos/Lencerf/vscode-beancount/contents/syntaxes/beancount.tmLanguage?ref=75fc29960fcf6666e4b06310fac4d49a16c57ca0',
455
+ sha: '60dcdbd3af273aca0ff628220f2828483101ca47',
456
+ source: 'https://github.com/Lencerf/vscode-beancount/blob/60dcdbd3af273aca0ff628220f2828483101ca47/syntaxes/beancount.tmLanguage',
457
+ sourceApi: 'https://api.github.com/repos/Lencerf/vscode-beancount/contents/syntaxes/beancount.tmLanguage?ref=60dcdbd3af273aca0ff628220f2828483101ca47',
458
458
  },
459
459
  {
460
460
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.32.16",
4
+ "version": "1.32.17",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",