tm-grammars 1.23.2 → 1.23.3

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
@@ -247,7 +247,7 @@ Injections are grammars that are embedded in other grammars. They are used to ag
247
247
 
248
248
  | Name | Alias | Source | License | Sponsor | Deps On | File Size |
249
249
  | ---- | ----- | ------ | ------- | ------- | ------- | --------- |
250
- | `angular-expression` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/d7dab52644375e64af3deaeac045cc75f5954414/syntaxes/expression.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | | 12.35 kB |
250
+ | `angular-expression` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/de5d9650caa3a9de1b50e9815acb2a631f14ab3d/syntaxes/expression.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | | 17.87 kB |
251
251
  | `angular-inline-style` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/f0422f5f571f79a904510944452f06fb36beff22/syntaxes/inline-styles.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | `scss` | 1.17 kB |
252
252
  | `angular-inline-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/a18c61752e65ddcbeb31217f47f29fa38fe26c42/syntaxes/inline-template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | `angular-html` `angular-template` | 970.00 B |
253
253
  | `angular-let-declaration` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/4ab348120e4fb499bb12560dc039e0c7b5b418b8/syntaxes/let-declaration.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | `angular-expression` | 879.00 B |
@@ -565,6 +565,9 @@
565
565
  },
566
566
  {
567
567
  "include": "#qstringDouble"
568
+ },
569
+ {
570
+ "include": "#templateLiteral"
568
571
  }
569
572
  ]
570
573
  },
@@ -572,6 +575,100 @@
572
575
  "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)",
573
576
  "name": "constant.character.escape.ts"
574
577
  },
578
+ "templateLiteral": {
579
+ "patterns": [
580
+ {
581
+ "include": "#templateLiteralCall"
582
+ },
583
+ {
584
+ "begin": "([_$[:alpha:]][_$[:alnum:]]*)?(`)",
585
+ "beginCaptures": {
586
+ "1": {
587
+ "name": "entity.name.function.tagged-template.ts"
588
+ },
589
+ "2": {
590
+ "name": "string.template.ts punctuation.definition.string.template.begin.ts"
591
+ }
592
+ },
593
+ "contentName": "string.template.ts",
594
+ "end": "`",
595
+ "endCaptures": {
596
+ "0": {
597
+ "name": "string.template.ts punctuation.definition.string.template.end.ts"
598
+ }
599
+ },
600
+ "patterns": [
601
+ {
602
+ "include": "#templateLiteralSubstitutionElement"
603
+ },
604
+ {
605
+ "include": "#stringCharacterEscape"
606
+ }
607
+ ]
608
+ }
609
+ ]
610
+ },
611
+ "templateLiteralCall": {
612
+ "patterns": [
613
+ {
614
+ "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*\\s*\\??\\.\\s*)*|(\\??\\.\\s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)?`)",
615
+ "end": "(?=`)",
616
+ "patterns": [
617
+ {
618
+ "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*\\s*\\??\\.\\s*)*|(\\??\\.\\s*)?)([_$[:alpha:]][_$[:alnum:]]*))",
619
+ "end": "(?=(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)?`)",
620
+ "patterns": [
621
+ {
622
+ "include": "#support-function-call-identifiers"
623
+ },
624
+ {
625
+ "match": "([_$[:alpha:]][_$[:alnum:]]*)",
626
+ "name": "entity.name.function.tagged-template.ts"
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "include": "#typeArguments"
632
+ }
633
+ ]
634
+ },
635
+ {
636
+ "begin": "([_$[:alpha:]][_$[:alnum:]]*)?\\s*(?=(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^`\\\\]|\\\\.)*`))(?=\\s*([<>,.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>(]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)`)",
637
+ "beginCaptures": {
638
+ "1": {
639
+ "name": "entity.name.function.tagged-template.ts"
640
+ }
641
+ },
642
+ "end": "(?=`)",
643
+ "patterns": [
644
+ {
645
+ "include": "#typeArguments"
646
+ }
647
+ ]
648
+ }
649
+ ]
650
+ },
651
+ "templateLiteralSubstitutionElement": {
652
+ "begin": "\\$\\{",
653
+ "beginCaptures": {
654
+ "0": {
655
+ "name": "punctuation.definition.template-expression.begin.ts"
656
+ }
657
+ },
658
+ "contentName": "meta.embedded.line.ts",
659
+ "end": "}",
660
+ "endCaptures": {
661
+ "0": {
662
+ "name": "punctuation.definition.template-expression.end.ts"
663
+ }
664
+ },
665
+ "name": "meta.template.expression.ts",
666
+ "patterns": [
667
+ {
668
+ "include": "#ngExpression"
669
+ }
670
+ ]
671
+ },
575
672
  "ternaryExpression": {
576
673
  "begin": "(?!\\?\\.\\s*\\D)(\\?)(?!\\?)",
577
674
  "beginCaptures": {
@@ -642,6 +739,44 @@
642
739
  }
643
740
  ]
644
741
  },
742
+ "typeArguments": {
743
+ "begin": "<",
744
+ "beginCaptures": {
745
+ "0": {
746
+ "name": "punctuation.definition.typeparameters.begin.ts"
747
+ }
748
+ },
749
+ "end": ">",
750
+ "endCaptures": {
751
+ "0": {
752
+ "name": "punctuation.definition.typeparameters.end.ts"
753
+ }
754
+ },
755
+ "name": "meta.type.parameters.ts",
756
+ "patterns": [
757
+ {
758
+ "include": "#typeArgumentsBody"
759
+ }
760
+ ]
761
+ },
762
+ "typeArgumentsBody": {
763
+ "patterns": [
764
+ {
765
+ "captures": {
766
+ "0": {
767
+ "name": "keyword.operator.type.ts"
768
+ }
769
+ },
770
+ "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(_)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))"
771
+ },
772
+ {
773
+ "include": "#type"
774
+ },
775
+ {
776
+ "include": "#punctuationComma"
777
+ }
778
+ ]
779
+ },
645
780
  "typeBuiltinLiterals": {
646
781
  "match": "(?<![.$])\\b(this|true|false|undefined|null)\\b(?!\\$)",
647
782
  "name": "support.type.builtin.ts"
package/index.js CHANGED
@@ -4395,21 +4395,21 @@ export const grammars = [
4395
4395
 
4396
4396
  export const injections = [
4397
4397
  {
4398
- byteSize: 12646,
4398
+ byteSize: 18298,
4399
4399
  embeddedIn: [
4400
4400
  'angular-ts',
4401
4401
  'angular-html',
4402
4402
  ],
4403
4403
  funding: [
4404
4404
  ],
4405
- hash: '3n0wu2DuuFSj_NXxrp9pvnebLTMWG5_wQrJ1der11ys',
4406
- lastUpdate: '2023-11-08T17:02:59Z',
4405
+ hash: 'bX8DyAhANINI88pfAg0eGzOY2Li8bDELOEl5gro-trU',
4406
+ lastUpdate: '2025-03-12T17:49:04Z',
4407
4407
  license: 'MIT',
4408
4408
  licenseUrl: 'https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE',
4409
4409
  name: 'angular-expression',
4410
4410
  scopeName: 'expression.ng',
4411
- sha: 'd7dab52644375e64af3deaeac045cc75f5954414',
4412
- source: 'https://github.com/angular/vscode-ng-language-service/blob/d7dab52644375e64af3deaeac045cc75f5954414/syntaxes/expression.json',
4411
+ sha: 'de5d9650caa3a9de1b50e9815acb2a631f14ab3d',
4412
+ source: 'https://github.com/angular/vscode-ng-language-service/blob/de5d9650caa3a9de1b50e9815acb2a631f14ab3d/syntaxes/expression.json',
4413
4413
  },
4414
4414
  {
4415
4415
  byteSize: 1196,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.23.2",
4
+ "version": "1.23.3",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",