tm-grammars 1.0.8 → 1.0.9

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/NOTICE CHANGED
@@ -922,6 +922,33 @@ the library. If this is what you want to do, use the GNU Lesser General
922
922
  Public License instead of this License. But first, please read
923
923
  <http://www.gnu.org/philosophy/why-not-lgpl.html>.
924
924
 
925
+ =========================================================================================================
926
+ Files: angular.json, angular-inline-style.json, angular-inline-template.json, angular-template.json, angular-template-blocks.json
927
+ License: https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE
928
+ SPDX: MIT
929
+ ---------------------------------------------------------------------------------------------------------
930
+ The MIT License
931
+
932
+ Copyright (c) 2014-2016 Google, Inc. http://angular.io
933
+
934
+ Permission is hereby granted, free of charge, to any person obtaining a copy
935
+ of this software and associated documentation files (the "Software"), to deal
936
+ in the Software without restriction, including without limitation the rights
937
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
938
+ copies of the Software, and to permit persons to whom the Software is
939
+ furnished to do so, subject to the following conditions:
940
+
941
+ The above copyright notice and this permission notice shall be included in
942
+ all copies or substantial portions of the Software.
943
+
944
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
945
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
946
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
947
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
948
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
949
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
950
+ THE SOFTWARE.
951
+
925
952
  =========================================================================================================
926
953
  Files: apache.json
927
954
  License: https://raw.githubusercontent.com/colinta/ApacheConf.tmLanguage/main/LICENSE
package/README.md CHANGED
@@ -24,6 +24,11 @@ import { grammars } from 'tm-grammars'
24
24
  | `abap` | | [pvl/abap.tmbundle](https://github.com/pvl/abap.tmbundle/blob/a9b2efff4f4afa469d984353384f09e4ebd24055/Syntaxes/ABAP.tmLanguage) | | | 16.90 kB |
25
25
  | `actionscript-3` | | [BowlerHatLLC/vscode-as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml/blob/cb683a4cb4b5cac1126be203d4f081d8bfda57f5/distribution/src/assembly/syntaxes/AS3.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/BowlerHatLLC/vscode-as3mxml/main/LICENSE) | | 13.74 kB |
26
26
  | `ada` | | [AdaCore/ada_language_server](https://github.com/AdaCore/ada_language_server/blob/75c0d0c22b3f3dbf559946331c7aca6fc5b84065/integration/vscode/ada/advanced/ada.tmLanguage.json) | [GPL-3.0](https://raw.githubusercontent.com/AdaCore/ada_language_server/master/LICENSE) | | 45.72 kB |
27
+ | `angular` | | [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) | `angular-inline-style` `angular-inline-template` `angular-template` `angular-template-blocks` | 12.68 kB |
28
+ | `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 |
29
+ | `angular-inline-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/c3f3172a70b1a2bfdca3bdee85df9271cb0895cf/syntaxes/inline-template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-template` | 950.00 B |
30
+ | `angular-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/38481421878d59dda0a69e508e97265c8e173fcd/syntaxes/template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | 3.09 kB |
31
+ | `angular-template-blocks` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/abfdaa7e3c1eefe0054659deb217a967d5b551b8/syntaxes/template-blocks.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-template` | 1.09 kB |
27
32
  | `apache` | | [colinta/ApacheConf.tmLanguage](https://github.com/colinta/ApacheConf.tmLanguage/blob/1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07/ApacheConf.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/colinta/ApacheConf.tmLanguage/main/LICENSE) | | 12.57 kB |
28
33
  | `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/1d3c7097c8e50b4f4163c9e27b450fcd45f40a5e/grammars/apex.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE) | | 47.31 kB |
29
34
  | `apl` | | [kimmolinna/vscode-apl-language](https://github.com/kimmolinna/vscode-apl-language/blob/13541242d9ffae225e89ebba23f9abaa4c60697e/syntaxes/apl.tmLanguage.json) | | `html` `xml` `css` `javascript` `json` | 25.97 kB |
@@ -0,0 +1,102 @@
1
+ {
2
+ "injectTo": [
3
+ "source.ts"
4
+ ],
5
+ "injectionSelector": "L:source.ts#meta.decorator.ts -comment",
6
+ "name": "angular-inline-style",
7
+ "patterns": [
8
+ {
9
+ "include": "#inlineStyles"
10
+ }
11
+ ],
12
+ "repository": {
13
+ "inlineStyles": {
14
+ "begin": "(styles)\\s*(:)",
15
+ "beginCaptures": {
16
+ "1": {
17
+ "name": "meta.object-literal.key.ts"
18
+ },
19
+ "2": {
20
+ "name": "meta.object-literal.key.ts punctuation.separator.key-value.ts"
21
+ }
22
+ },
23
+ "end": "(?=,|})",
24
+ "patterns": [
25
+ {
26
+ "include": "#tsParenExpression"
27
+ },
28
+ {
29
+ "include": "#tsBracketExpression"
30
+ },
31
+ {
32
+ "include": "#style"
33
+ }
34
+ ]
35
+ },
36
+ "style": {
37
+ "begin": "\\s*([`|'|\"])",
38
+ "beginCaptures": {
39
+ "1": {
40
+ "name": "string"
41
+ }
42
+ },
43
+ "contentName": "source.css.scss",
44
+ "end": "\\1",
45
+ "endCaptures": {
46
+ "0": {
47
+ "name": "string"
48
+ }
49
+ },
50
+ "patterns": [
51
+ {
52
+ "include": "source.css.scss"
53
+ }
54
+ ]
55
+ },
56
+ "tsBracketExpression": {
57
+ "begin": "\\G\\s*(\\[)",
58
+ "beginCaptures": {
59
+ "1": {
60
+ "name": "meta.array.literal.ts meta.brace.square.ts"
61
+ }
62
+ },
63
+ "end": "\\]",
64
+ "endCaptures": {
65
+ "0": {
66
+ "name": "meta.array.literal.ts meta.brace.square.ts"
67
+ }
68
+ },
69
+ "patterns": [
70
+ {
71
+ "include": "#style"
72
+ }
73
+ ]
74
+ },
75
+ "tsParenExpression": {
76
+ "begin": "\\G\\s*(\\()",
77
+ "beginCaptures": {
78
+ "1": {
79
+ "name": "meta.brace.round.ts"
80
+ }
81
+ },
82
+ "end": "\\)",
83
+ "endCaptures": {
84
+ "0": {
85
+ "name": "meta.brace.round.ts"
86
+ }
87
+ },
88
+ "patterns": [
89
+ {
90
+ "include": "$self"
91
+ },
92
+ {
93
+ "include": "#tsBracketExpression"
94
+ },
95
+ {
96
+ "include": "#style"
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ "scopeName": "inline-styles.ng"
102
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "injectTo": [
3
+ "source.ts"
4
+ ],
5
+ "injectionSelector": "L:meta.decorator.ts -comment -text.html",
6
+ "name": "angular-inline-template",
7
+ "patterns": [
8
+ {
9
+ "include": "#inlineTemplate"
10
+ }
11
+ ],
12
+ "repository": {
13
+ "inlineTemplate": {
14
+ "begin": "(template)\\s*(:)",
15
+ "beginCaptures": {
16
+ "1": {
17
+ "name": "meta.object-literal.key.ts"
18
+ },
19
+ "2": {
20
+ "name": "meta.object-literal.key.ts punctuation.separator.key-value.ts"
21
+ }
22
+ },
23
+ "end": "(?=,|})",
24
+ "patterns": [
25
+ {
26
+ "include": "#tsParenExpression"
27
+ },
28
+ {
29
+ "include": "#ngTemplate"
30
+ }
31
+ ]
32
+ },
33
+ "ngTemplate": {
34
+ "begin": "\\G\\s*([`|'|\"])",
35
+ "beginCaptures": {
36
+ "1": {
37
+ "name": "string"
38
+ }
39
+ },
40
+ "contentName": "text.html",
41
+ "end": "\\1",
42
+ "endCaptures": {
43
+ "0": {
44
+ "name": "string"
45
+ }
46
+ },
47
+ "patterns": [
48
+ {
49
+ "include": "text.html.derivative"
50
+ },
51
+ {
52
+ "include": "template.ng"
53
+ }
54
+ ]
55
+ },
56
+ "tsParenExpression": {
57
+ "begin": "\\G\\s*(\\()",
58
+ "beginCaptures": {
59
+ "1": {
60
+ "name": "meta.brace.round.ts"
61
+ }
62
+ },
63
+ "end": "\\)",
64
+ "endCaptures": {
65
+ "0": {
66
+ "name": "meta.brace.round.ts"
67
+ }
68
+ },
69
+ "patterns": [
70
+ {
71
+ "include": "#tsParenExpression"
72
+ },
73
+ {
74
+ "include": "#ngTemplate"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ "scopeName": "inline-template.ng"
80
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "injectTo": [
3
+ "text.html.derivative",
4
+ "source.ts"
5
+ ],
6
+ "injectionSelector": "L:text.html -comment -expression.ng -meta.tag -source.css -source.js",
7
+ "name": "angular-template-blocks",
8
+ "patterns": [
9
+ {
10
+ "include": "#block"
11
+ }
12
+ ],
13
+ "repository": {
14
+ "block": {
15
+ "begin": "(@)((?:\\w+\\s*)+)(?=\\(|\\{)",
16
+ "beginCaptures": {
17
+ "1": {
18
+ "patterns": [
19
+ {
20
+ "include": "#transition"
21
+ }
22
+ ]
23
+ },
24
+ "2": {
25
+ "name": "keyword.control.block.kind.ng"
26
+ }
27
+ },
28
+ "contentName": "control.block.ng",
29
+ "end": "(?<=\\})",
30
+ "patterns": [
31
+ {
32
+ "include": "#blockExpression"
33
+ },
34
+ {
35
+ "include": "#blockBody"
36
+ }
37
+ ]
38
+ },
39
+ "blockBody": {
40
+ "begin": "\\{",
41
+ "beginCaptures": {
42
+ "0": {
43
+ "name": "punctuation.definition.block.ts"
44
+ }
45
+ },
46
+ "contentName": "control.block.body.ng",
47
+ "end": "\\}",
48
+ "endCaptures": {
49
+ "0": {
50
+ "name": "punctuation.definition.block.ts"
51
+ }
52
+ },
53
+ "patterns": [
54
+ {
55
+ "include": "text.html.derivative"
56
+ },
57
+ {
58
+ "include": "template.ng"
59
+ }
60
+ ]
61
+ },
62
+ "blockExpression": {
63
+ "begin": "\\(",
64
+ "beginCaptures": {
65
+ "0": {
66
+ "name": "meta.brace.round.ts"
67
+ }
68
+ },
69
+ "contentName": "control.block.expression.ng",
70
+ "end": "\\)",
71
+ "endCaptures": {
72
+ "0": {
73
+ "name": "meta.brace.round.ts"
74
+ }
75
+ },
76
+ "patterns": [
77
+ {
78
+ "include": "expression.ng"
79
+ }
80
+ ]
81
+ },
82
+ "transition": {
83
+ "match": "@",
84
+ "name": "keyword.control.block.transition.ng"
85
+ }
86
+ },
87
+ "scopeName": "template.blocks.ng"
88
+ }
@@ -0,0 +1,200 @@
1
+ {
2
+ "injectTo": [
3
+ "text.html.derivative",
4
+ "source.ts"
5
+ ],
6
+ "injectionSelector": "L:text.html -comment",
7
+ "name": "angular-template",
8
+ "patterns": [
9
+ {
10
+ "include": "#interpolation"
11
+ },
12
+ {
13
+ "include": "#propertyBinding"
14
+ },
15
+ {
16
+ "include": "#eventBinding"
17
+ },
18
+ {
19
+ "include": "#twoWayBinding"
20
+ },
21
+ {
22
+ "include": "#templateBinding"
23
+ }
24
+ ],
25
+ "repository": {
26
+ "bindingKey": {
27
+ "patterns": [
28
+ {
29
+ "captures": {
30
+ "1": {
31
+ "name": "punctuation.definition.ng-binding-name.begin.html"
32
+ },
33
+ "2": {
34
+ "name": "entity.other.ng-binding-name.$2.html",
35
+ "patterns": [
36
+ {
37
+ "match": "\\.",
38
+ "name": "punctuation.accessor.html"
39
+ }
40
+ ]
41
+ },
42
+ "3": {
43
+ "name": "punctuation.definition.ng-binding-name.end.html"
44
+ }
45
+ },
46
+ "match": "([\\[\\(]{1,2}|\\*)(?:\\s*)(@?[-_a-zA-Z0-9.$]*%?)(?:\\s*)([\\]\\)]{1,2})?"
47
+ }
48
+ ]
49
+ },
50
+ "eventBinding": {
51
+ "begin": "(\\(\\s*@?[-_a-zA-Z0-9.$]*\\s*\\))(=)([\"'])",
52
+ "beginCaptures": {
53
+ "1": {
54
+ "name": "entity.other.attribute-name.html entity.other.ng-binding-name.event.html",
55
+ "patterns": [
56
+ {
57
+ "include": "#bindingKey"
58
+ }
59
+ ]
60
+ },
61
+ "2": {
62
+ "name": "punctuation.separator.key-value.html"
63
+ },
64
+ "3": {
65
+ "name": "string.quoted.html punctuation.definition.string.begin.html"
66
+ }
67
+ },
68
+ "contentName": "expression.ng",
69
+ "end": "\\3",
70
+ "endCaptures": {
71
+ "0": {
72
+ "name": "string.quoted.html punctuation.definition.string.end.html"
73
+ }
74
+ },
75
+ "name": "meta.ng-binding.event.html",
76
+ "patterns": [
77
+ {
78
+ "include": "expression.ng"
79
+ }
80
+ ]
81
+ },
82
+ "interpolation": {
83
+ "begin": "{{",
84
+ "beginCaptures": {
85
+ "0": {
86
+ "name": "punctuation.definition.block.ts"
87
+ }
88
+ },
89
+ "contentName": "expression.ng",
90
+ "end": "}}",
91
+ "endCaptures": {
92
+ "0": {
93
+ "name": "punctuation.definition.block.ts"
94
+ }
95
+ },
96
+ "patterns": [
97
+ {
98
+ "include": "expression.ng"
99
+ }
100
+ ]
101
+ },
102
+ "propertyBinding": {
103
+ "begin": "(\\[\\s*@?[-_a-zA-Z0-9.$]*%?\\s*])(=)([\"'])",
104
+ "beginCaptures": {
105
+ "1": {
106
+ "name": "entity.other.attribute-name.html entity.other.ng-binding-name.property.html",
107
+ "patterns": [
108
+ {
109
+ "include": "#bindingKey"
110
+ }
111
+ ]
112
+ },
113
+ "2": {
114
+ "name": "punctuation.separator.key-value.html"
115
+ },
116
+ "3": {
117
+ "name": "string.quoted.html punctuation.definition.string.begin.html"
118
+ }
119
+ },
120
+ "contentName": "expression.ng",
121
+ "end": "\\3",
122
+ "endCaptures": {
123
+ "0": {
124
+ "name": "string.quoted.html punctuation.definition.string.end.html"
125
+ }
126
+ },
127
+ "name": "meta.ng-binding.property.html",
128
+ "patterns": [
129
+ {
130
+ "include": "expression.ng"
131
+ }
132
+ ]
133
+ },
134
+ "templateBinding": {
135
+ "begin": "(\\*[-_a-zA-Z0-9.$]*)(=)([\"'])",
136
+ "beginCaptures": {
137
+ "1": {
138
+ "name": "entity.other.attribute-name.html entity.other.ng-binding-name.template.html",
139
+ "patterns": [
140
+ {
141
+ "include": "#bindingKey"
142
+ }
143
+ ]
144
+ },
145
+ "2": {
146
+ "name": "punctuation.separator.key-value.html"
147
+ },
148
+ "3": {
149
+ "name": "string.quoted.html punctuation.definition.string.begin.html"
150
+ }
151
+ },
152
+ "contentName": "expression.ng",
153
+ "end": "\\3",
154
+ "endCaptures": {
155
+ "0": {
156
+ "name": "string.quoted.html punctuation.definition.string.end.html"
157
+ }
158
+ },
159
+ "name": "meta.ng-binding.template.html",
160
+ "patterns": [
161
+ {
162
+ "include": "expression.ng"
163
+ }
164
+ ]
165
+ },
166
+ "twoWayBinding": {
167
+ "begin": "(\\[\\s*\\(\\s*@?[-_a-zA-Z0-9.$]*\\s*\\)\\s*\\])(=)([\"'])",
168
+ "beginCaptures": {
169
+ "1": {
170
+ "name": "entity.other.attribute-name.html entity.other.ng-binding-name.two-way.html",
171
+ "patterns": [
172
+ {
173
+ "include": "#bindingKey"
174
+ }
175
+ ]
176
+ },
177
+ "2": {
178
+ "name": "punctuation.separator.key-value.html"
179
+ },
180
+ "3": {
181
+ "name": "string.quoted.html punctuation.definition.string.begin.html"
182
+ }
183
+ },
184
+ "contentName": "expression.ng",
185
+ "end": "\\3",
186
+ "endCaptures": {
187
+ "0": {
188
+ "name": "string.quoted.html punctuation.definition.string.end.html"
189
+ }
190
+ },
191
+ "name": "meta.ng-binding.two-way.html",
192
+ "patterns": [
193
+ {
194
+ "include": "expression.ng"
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ "scopeName": "template.ng"
200
+ }