tm-grammars 1.2.0 → 1.2.1
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/scala.json +45 -29
- package/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,7 +157,7 @@ import { grammars } from 'tm-grammars'
|
|
|
157
157
|
| `rust` | `rs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/rust/syntaxes/rust.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 16.77 kB |
|
|
158
158
|
| `sas` | | [rpardee/sas](https://github.com/rpardee/sas/blob/49f6e733c6c0b918a2a825ca2f63dba704f3e8c0/syntaxes/sas.tmLanguage) | [MIT](https://raw.githubusercontent.com/rpardee/sas/master/LICENSE) | `sql` | 9.31 kB |
|
|
159
159
|
| `sass` | | [TheRealSyler/vscode-sass-indented](https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json) | [NOASSERTION](https://raw.githubusercontent.com/TheRealSyler/vscode-sass-indented/master/LICENSE) | | 8.84 kB |
|
|
160
|
-
| `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/
|
|
160
|
+
| `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/d4207351671160b65ec05a43f5452ad8c9138950/syntaxes/Scala.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md) | | 26.72 kB |
|
|
161
161
|
| `scheme` | | [sjhuangx/vscode-scheme](https://github.com/sjhuangx/vscode-scheme/blob/4e21683666e1e2edfa21d040ecd427f628e7b5ff/syntaxes/scheme.tmLanguage) | [MIT](https://raw.githubusercontent.com/sjhuangx/vscode-scheme/master/LICENSE.md) | | 8.35 kB |
|
|
162
162
|
| `scss` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf8d61ebd2f022f4ce8280171f0360d1fe0a206d/extensions/scss/syntaxes/scss.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` | 26.21 kB |
|
|
163
163
|
| `shaderlab` | `shader` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `hlsl` | 5.83 kB |
|
package/grammars/scala.json
CHANGED
|
@@ -105,35 +105,51 @@
|
|
|
105
105
|
]
|
|
106
106
|
},
|
|
107
107
|
"char-literal": {
|
|
108
|
-
"begin": "'",
|
|
109
|
-
"beginCaptures": {
|
|
110
|
-
"0": {
|
|
111
|
-
"name": "punctuation.definition.character.begin.scala"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"end": "'|$",
|
|
115
|
-
"endCaptures": {
|
|
116
|
-
"0": {
|
|
117
|
-
"name": "punctuation.definition.character.end.scala"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"name": "string.quoted.other constant.character.literal.scala",
|
|
121
108
|
"patterns": [
|
|
122
109
|
{
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"match": "
|
|
132
|
-
"name": "
|
|
110
|
+
"captures": {
|
|
111
|
+
"1": {
|
|
112
|
+
"name": "punctuation.definition.character.begin.scala"
|
|
113
|
+
},
|
|
114
|
+
"2": {
|
|
115
|
+
"name": "punctuation.definition.character.end.scala"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"match": "(')'(')",
|
|
119
|
+
"name": "string.quoted.other constant.character.literal.scala"
|
|
133
120
|
},
|
|
134
121
|
{
|
|
135
|
-
"
|
|
136
|
-
"
|
|
122
|
+
"begin": "'",
|
|
123
|
+
"beginCaptures": {
|
|
124
|
+
"0": {
|
|
125
|
+
"name": "punctuation.definition.character.begin.scala"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"end": "'|$",
|
|
129
|
+
"endCaptures": {
|
|
130
|
+
"0": {
|
|
131
|
+
"name": "punctuation.definition.character.end.scala"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"name": "string.quoted.other constant.character.literal.scala",
|
|
135
|
+
"patterns": [
|
|
136
|
+
{
|
|
137
|
+
"match": "\\\\(?:[btnfr\\\\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})",
|
|
138
|
+
"name": "constant.character.escape.scala"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"match": "\\\\.",
|
|
142
|
+
"name": "invalid.illegal.unrecognized-character-escape.scala"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"match": "[^']{2,}",
|
|
146
|
+
"name": "invalid.illegal.character-literal-too-long"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"match": "(?<!')[^']",
|
|
150
|
+
"name": "invalid.illegal.character-literal-too-long"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
137
153
|
}
|
|
138
154
|
]
|
|
139
155
|
},
|
|
@@ -362,7 +378,7 @@
|
|
|
362
378
|
"name": "variable.stable.declaration.scala"
|
|
363
379
|
}
|
|
364
380
|
},
|
|
365
|
-
"match": "\\b(val)\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`)(?:\\s*,\\s*(?:(?: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\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`)(?:\\s*,\\s*(?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))*)?"
|
|
392
|
+
"match": "\\b(var)\\b\\s*(?!//|/\\*)((?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`)(?:\\s*,\\s*(?:(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)|`[^`]+`))*)?(?!\")"
|
|
377
393
|
},
|
|
378
394
|
{
|
|
379
395
|
"captures": {
|
|
380
396
|
"1": {
|
|
381
|
-
"name": "keyword.other.
|
|
397
|
+
"name": "keyword.other.package.scala"
|
|
382
398
|
},
|
|
383
399
|
"2": {
|
|
384
400
|
"name": "keyword.declaration.scala"
|
|
@@ -393,7 +409,7 @@
|
|
|
393
409
|
"begin": "\\b(package)\\s+",
|
|
394
410
|
"beginCaptures": {
|
|
395
411
|
"1": {
|
|
396
|
-
"name": "keyword.other.
|
|
412
|
+
"name": "keyword.other.package.scala"
|
|
397
413
|
}
|
|
398
414
|
},
|
|
399
415
|
"end": "(?<=[\\n;])",
|
package/index.js
CHANGED
|
@@ -2205,15 +2205,15 @@ export const grammars = [
|
|
|
2205
2205
|
source: 'https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json',
|
|
2206
2206
|
},
|
|
2207
2207
|
{
|
|
2208
|
-
byteSize:
|
|
2208
|
+
byteSize: 27359,
|
|
2209
2209
|
displayName: 'Scala',
|
|
2210
|
-
lastUpdate: '
|
|
2210
|
+
lastUpdate: '2024-02-13T11:53:11Z',
|
|
2211
2211
|
license: 'MIT',
|
|
2212
2212
|
licenseUrl: 'https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md',
|
|
2213
2213
|
name: 'scala',
|
|
2214
2214
|
scopeName: 'source.scala',
|
|
2215
|
-
sha: '
|
|
2216
|
-
source: 'https://github.com/scala/vscode-scala-syntax/blob/
|
|
2215
|
+
sha: 'd4207351671160b65ec05a43f5452ad8c9138950',
|
|
2216
|
+
source: 'https://github.com/scala/vscode-scala-syntax/blob/d4207351671160b65ec05a43f5452ad8c9138950/syntaxes/Scala.tmLanguage.json',
|
|
2217
2217
|
},
|
|
2218
2218
|
{
|
|
2219
2219
|
byteSize: 8548,
|
package/package.json
CHANGED