tm-grammars 1.18.1 → 1.18.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/scala.json +44 -10
- package/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -181,7 +181,7 @@ import { grammars } from 'tm-grammars'
|
|
|
181
181
|
| `rust` | `rs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/03dc55030b3b2b5c4779d4ac1e2e46cd1f5a6b7c/extensions/rust/syntaxes/rust.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 16.81 kB |
|
|
182
182
|
| `sas` | | [rpardee/sas](https://github.com/rpardee/sas/blob/49f6e733c6c0b918a2a825ca2f63dba704f3e8c0/syntaxes/sas.tmLanguage) | [MIT](https://raw.githubusercontent.com/rpardee/sas/master/LICENSE) | `sql` | 9.30 kB |
|
|
183
183
|
| `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.83 kB |
|
|
184
|
-
| `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/
|
|
184
|
+
| `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/d868753f29b0281fdf221785d3530d5066f5b77d/syntaxes/Scala.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md) | | 27.05 kB |
|
|
185
185
|
| `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.08 kB |
|
|
186
186
|
| `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` | 25.96 kB |
|
|
187
187
|
| `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.80 kB |
|
package/grammars/scala.json
CHANGED
|
@@ -743,20 +743,54 @@
|
|
|
743
743
|
"match": "^\\s*(end)\\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*\\S.*).*)?$)"
|
|
744
744
|
},
|
|
745
745
|
{
|
|
746
|
-
"match": "(
|
|
747
|
-
"name": "keyword.operator.
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"match": "(-|\\+|\\*|/(?![/*])|%|~)",
|
|
751
|
-
"name": "keyword.operator.arithmetic.scala"
|
|
746
|
+
"match": "([!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]|[\\\\]){3,}",
|
|
747
|
+
"name": "keyword.operator.scala"
|
|
752
748
|
},
|
|
753
749
|
{
|
|
754
|
-
"
|
|
755
|
-
|
|
750
|
+
"captures": {
|
|
751
|
+
"1": {
|
|
752
|
+
"patterns": [
|
|
753
|
+
{
|
|
754
|
+
"match": "(\\|\\||&&)",
|
|
755
|
+
"name": "keyword.operator.logical.scala"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"match": "(!=|==|<=|>=)",
|
|
759
|
+
"name": "keyword.operator.comparison.scala"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"match": "..",
|
|
763
|
+
"name": "keyword.operator.scala"
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"match": "((?:[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]|[\\\\]){2,}|_\\*)"
|
|
756
769
|
},
|
|
757
770
|
{
|
|
758
|
-
"
|
|
759
|
-
|
|
771
|
+
"captures": {
|
|
772
|
+
"1": {
|
|
773
|
+
"patterns": [
|
|
774
|
+
{
|
|
775
|
+
"match": "(!)",
|
|
776
|
+
"name": "keyword.operator.logical.scala"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"match": "(\\*|-|\\+|/|%|~)",
|
|
780
|
+
"name": "keyword.operator.arithmetic.scala"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"match": "(=|<|>)",
|
|
784
|
+
"name": "keyword.operator.comparison.scala"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"match": ".",
|
|
788
|
+
"name": "keyword.operator.scala"
|
|
789
|
+
}
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"match": "(?<!_)([!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]|\\\\)"
|
|
760
794
|
}
|
|
761
795
|
]
|
|
762
796
|
},
|
package/index.js
CHANGED
|
@@ -2770,16 +2770,16 @@ export const grammars = [
|
|
|
2770
2770
|
source: 'https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json',
|
|
2771
2771
|
},
|
|
2772
2772
|
{
|
|
2773
|
-
byteSize:
|
|
2773
|
+
byteSize: 27698,
|
|
2774
2774
|
displayName: 'Scala',
|
|
2775
|
-
hash: '
|
|
2776
|
-
lastUpdate: '2024-10-
|
|
2775
|
+
hash: 'TXBe2fD11I',
|
|
2776
|
+
lastUpdate: '2024-10-09T13:56:15Z',
|
|
2777
2777
|
license: 'MIT',
|
|
2778
2778
|
licenseUrl: 'https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md',
|
|
2779
2779
|
name: 'scala',
|
|
2780
2780
|
scopeName: 'source.scala',
|
|
2781
|
-
sha: '
|
|
2782
|
-
source: 'https://github.com/scala/vscode-scala-syntax/blob/
|
|
2781
|
+
sha: 'd868753f29b0281fdf221785d3530d5066f5b77d',
|
|
2782
|
+
source: 'https://github.com/scala/vscode-scala-syntax/blob/d868753f29b0281fdf221785d3530d5066f5b77d/syntaxes/Scala.tmLanguage.json',
|
|
2783
2783
|
},
|
|
2784
2784
|
{
|
|
2785
2785
|
byteSize: 8270,
|