tm-grammars 1.25.1 → 1.25.2
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 +1 -1
- package/grammars/apex.json +22 -30
- package/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ import { grammars } from 'tm-grammars'
|
|
|
26
26
|
| `angular-html` | | [onivim/vscode-exthost](https://github.com/onivim/vscode-exthost/blob/cfc2a2212de9ea10943af58ebd1817a5ad196463/extensions/html/syntaxes/html-derivative.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/onivim/vscode-exthost/master/LICENSE.txt) | | `html` `angular-expression` `angular-let-declaration` `angular-template` `angular-template-blocks` | 701.00 B |
|
|
27
27
|
| `angular-ts` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `angular-expression` `angular-inline-style` `angular-inline-template` `angular-let-declaration` `angular-template` `angular-template-blocks` | 160.04 kB |
|
|
28
28
|
| `apache` | | [colinta/ApacheConf.tmLanguage](https://github.com/colinta/ApacheConf.tmLanguage/blob/1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07/ApacheConf.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/colinta/ApacheConf.tmLanguage/main/LICENSE) | | | 11.83 kB |
|
|
29
|
-
| `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/
|
|
29
|
+
| `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/da22c02d8cd25e455f58e453d26f9f6281269783/grammars/apex.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE) | | | 43.40 kB |
|
|
30
30
|
| `apl` | | [kimmolinna/vscode-apl-language](https://github.com/kimmolinna/vscode-apl-language/blob/13541242d9ffae225e89ebba23f9abaa4c60697e/syntaxes/apl.tmLanguage.json) | | | `html` `xml` `css` `javascript` `json` | 22.69 kB |
|
|
31
31
|
| `applescript` | | [textmate/applescript.tmbundle](https://github.com/textmate/applescript.tmbundle/blob/4947cad7494eba084c21cfe04689b4efce96700f/Syntaxes/AppleScript.tmLanguage) | | | | 27.80 kB |
|
|
32
32
|
| `ara` | | [ara-lang/highlighting](https://github.com/ara-lang/highlighting/blob/ed1dbedcf03d0b67207e41fe2e11218cc925dc0d/syntaxes/ara.json) | [Apache-2.0](https://raw.githubusercontent.com/ara-lang/highlighting/main/LICENSE-APACHE) | | | 5.91 kB |
|
package/grammars/apex.json
CHANGED
|
@@ -992,16 +992,26 @@
|
|
|
992
992
|
]
|
|
993
993
|
},
|
|
994
994
|
"implements-class": {
|
|
995
|
-
"begin": "(implements)\\b
|
|
995
|
+
"begin": "(implements)\\b",
|
|
996
996
|
"beginCaptures": {
|
|
997
997
|
"1": {
|
|
998
998
|
"name": "keyword.other.implements.apex"
|
|
999
|
-
},
|
|
1000
|
-
"2": {
|
|
1001
|
-
"name": "entity.name.type.implements.apex"
|
|
1002
999
|
}
|
|
1003
1000
|
},
|
|
1004
|
-
"end": "(?=\\{|extends)"
|
|
1001
|
+
"end": "(?=\\{|extends)",
|
|
1002
|
+
"patterns": [
|
|
1003
|
+
{
|
|
1004
|
+
"captures": {
|
|
1005
|
+
"1": {
|
|
1006
|
+
"name": "entity.name.type.implements.apex"
|
|
1007
|
+
},
|
|
1008
|
+
"2": {
|
|
1009
|
+
"name": "punctuation.separator.comma.apex"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
"match": "([_[:alpha:]][_[:alnum:]]*)\\b\\s*(,)?"
|
|
1013
|
+
}
|
|
1014
|
+
]
|
|
1005
1015
|
},
|
|
1006
1016
|
"indexer-declaration": {
|
|
1007
1017
|
"begin": "(?<return_type>(?<type_name>(?:ref\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*::\\s*)?(?<name_and_type_args>\\g<identifier>\\s*(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?)(?:\\s*\\.\\s*\\g<name_and_type_args>)*(?:\\s*\\?\\s*)?(?:\\s*\\[(?:\\s*,\\s*)*]\\s*)*)\\s+)(?<interface_name>\\g<type_name>\\s*\\.\\s*)?(?<indexer_name>this)\\s*(?=\\[)",
|
|
@@ -2365,7 +2375,7 @@
|
|
|
2365
2375
|
]
|
|
2366
2376
|
},
|
|
2367
2377
|
"switch-statement": {
|
|
2368
|
-
"begin": "(switch)\\b\\s+(on)\\b\\s+(
|
|
2378
|
+
"begin": "(switch)\\b\\s+(on)\\b\\s+(.*)(\\{)",
|
|
2369
2379
|
"beginCaptures": {
|
|
2370
2380
|
"1": {
|
|
2371
2381
|
"name": "keyword.control.switch.apex"
|
|
@@ -2940,19 +2950,20 @@
|
|
|
2940
2950
|
]
|
|
2941
2951
|
},
|
|
2942
2952
|
"when-string": {
|
|
2943
|
-
"begin": "(when)\\b
|
|
2953
|
+
"begin": "(when)\\b\\s*('[^\\n']*')(,)?",
|
|
2944
2954
|
"beginCaptures": {
|
|
2945
2955
|
"1": {
|
|
2946
2956
|
"name": "keyword.control.switch.when.apex"
|
|
2947
2957
|
},
|
|
2948
2958
|
"2": {
|
|
2949
|
-
"
|
|
2959
|
+
"patterns": [
|
|
2960
|
+
{
|
|
2961
|
+
"include": "#string-literal"
|
|
2962
|
+
}
|
|
2963
|
+
]
|
|
2950
2964
|
},
|
|
2951
2965
|
"3": {
|
|
2952
2966
|
"patterns": [
|
|
2953
|
-
{
|
|
2954
|
-
"include": "#when-string-statement"
|
|
2955
|
-
},
|
|
2956
2967
|
{
|
|
2957
2968
|
"include": "#punctuation-comma"
|
|
2958
2969
|
}
|
|
@@ -2969,25 +2980,6 @@
|
|
|
2969
2980
|
}
|
|
2970
2981
|
]
|
|
2971
2982
|
},
|
|
2972
|
-
"when-string-statement": {
|
|
2973
|
-
"patterns": [
|
|
2974
|
-
{
|
|
2975
|
-
"begin": "'",
|
|
2976
|
-
"beginCaptures": {
|
|
2977
|
-
"0": {
|
|
2978
|
-
"name": "punctuation.definition.string.begin.apex"
|
|
2979
|
-
}
|
|
2980
|
-
},
|
|
2981
|
-
"end": "'",
|
|
2982
|
-
"endCaptures": {
|
|
2983
|
-
"0": {
|
|
2984
|
-
"name": "punctuation.definition.string.end.apex"
|
|
2985
|
-
}
|
|
2986
|
-
},
|
|
2987
|
-
"name": "string.quoted.single.apex"
|
|
2988
|
-
}
|
|
2989
|
-
]
|
|
2990
|
-
},
|
|
2991
2983
|
"where-clause": {
|
|
2992
2984
|
"captures": {
|
|
2993
2985
|
"1": {
|
package/index.js
CHANGED
|
@@ -122,19 +122,19 @@ export const grammars = [
|
|
|
122
122
|
sourceApi: 'https://api.github.com/repos/colinta/ApacheConf.tmLanguage/contents/ApacheConf.tmLanguage?ref=1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07',
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
byteSize:
|
|
125
|
+
byteSize: 44441,
|
|
126
126
|
displayName: 'Apex',
|
|
127
127
|
funding: [
|
|
128
128
|
],
|
|
129
|
-
hash: '
|
|
130
|
-
lastUpdate: '2025-
|
|
129
|
+
hash: 'M0qEKFTpQDhyUENabySwFERcKfgtlqB_B7-vokG6HqI',
|
|
130
|
+
lastUpdate: '2025-10-27T11:53:34Z',
|
|
131
131
|
license: 'NOASSERTION',
|
|
132
132
|
licenseUrl: 'https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE',
|
|
133
133
|
name: 'apex',
|
|
134
134
|
scopeName: 'source.apex',
|
|
135
|
-
sha: '
|
|
136
|
-
source: 'https://github.com/forcedotcom/apex-tmLanguage/blob/
|
|
137
|
-
sourceApi: 'https://api.github.com/repos/forcedotcom/apex-tmLanguage/contents/grammars/apex.tmLanguage?ref=
|
|
135
|
+
sha: 'da22c02d8cd25e455f58e453d26f9f6281269783',
|
|
136
|
+
source: 'https://github.com/forcedotcom/apex-tmLanguage/blob/da22c02d8cd25e455f58e453d26f9f6281269783/grammars/apex.tmLanguage',
|
|
137
|
+
sourceApi: 'https://api.github.com/repos/forcedotcom/apex-tmLanguage/contents/grammars/apex.tmLanguage?ref=da22c02d8cd25e455f58e453d26f9f6281269783',
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
byteSize: 23233,
|