Skip to content

Commit 991a3f0

Browse files
authored
feat: bump js engine dependencies to support more grammars (#850)
1 parent 43ff1cf commit 991a3f0

File tree

3 files changed

+35
-35
lines changed

3 files changed

+35
-35
lines changed

docs/references/engine-js-compat.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
Compatibility reference of all built-in grammars with the [JavaScript RegExp engine](/guide/regex-engines#javascript-regexp-engine-experimental).
44

5-
> Generated on Sunday, November 24, 2024
5+
> Generated on Wednesday, November 27, 2024
66
>
77
> Version `1.23.1`
88
>
99
> Runtime: Node.js v22.11.0
1010
1111
## Report Summary
1212

13-
| | Count |
14-
| :-------------- | ---------------------------: |
15-
| Total Languages | 215 |
16-
| Supported | [193](#supported-languages) |
17-
| Mismatched | [9](#mismatched-languages) |
18-
| Unsupported | [13](#unsupported-languages) |
13+
| | Count |
14+
| :-------------- | --------------------------: |
15+
| Total Languages | 215 |
16+
| Supported | [197](#supported-languages) |
17+
| Mismatched | [12](#mismatched-languages) |
18+
| Unsupported | [6](#unsupported-languages) |
1919

2020
## Supported Languages
2121

@@ -80,6 +80,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
8080
| fluent | ✅ OK | 23 | - | |
8181
| fortran-fixed-form | ✅ OK | 332 | - | |
8282
| fortran-free-form | ✅ OK | 328 | - | |
83+
| fsharp | ✅ OK | 239 | - | |
8384
| fsl | ✅ OK | 30 | - | |
8485
| gdresource | ✅ OK | 157 | - | |
8586
| gdscript | ✅ OK | 93 | - | |
@@ -117,6 +118,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
117118
| jsonnet | ✅ OK | 33 | - | |
118119
| jssm | ✅ OK | 30 | - | |
119120
| jsx | ✅ OK | 376 | - | |
121+
| julia | ✅ OK | 1168 | - | |
120122
| latex | ✅ OK | 283 | - | |
121123
| lean | ✅ OK | 32 | - | |
122124
| less | ✅ OK | 280 | - | |
@@ -128,13 +130,15 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
128130
| make | ✅ OK | 51 | - | |
129131
| marko | ✅ OK | 926 | - | |
130132
| matlab | ✅ OK | 88 | - | |
133+
| mdc | ✅ OK | 783 | - | |
131134
| mdx | ✅ OK | 197 | - | |
132135
| mermaid | ✅ OK | 129 | - | |
133136
| mipsasm | ✅ OK | 17 | - | |
134137
| mojo | ✅ OK | 213 | - | |
135138
| move | ✅ OK | 120 | - | |
136139
| narrat | ✅ OK | 34 | - | |
137140
| nextflow | ✅ OK | 32 | - | |
141+
| nim | ✅ OK | 1126 | - | |
138142
| nix | ✅ OK | 80 | - | |
139143
| nushell | ✅ OK | 81 | - | |
140144
| objective-c | ✅ OK | 223 | - | |
@@ -155,7 +159,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
155159
| qmldir | ✅ OK | 7 | - | |
156160
| qss | ✅ OK | 31 | - | |
157161
| r | ✅ OK | 71 | - | |
158-
| racket | ✅ OK | 69 | - | 8 |
162+
| racket | ✅ OK | 69 | - | |
159163
| raku | ✅ OK | 52 | - | |
160164
| reg | ✅ OK | 9 | - | |
161165
| regexp | ✅ OK | 34 | - | |
@@ -210,7 +214,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
210214
| wenyan | ✅ OK | 18 | - | |
211215
| wgsl | ✅ OK | 44 | - | |
212216
| wikitext | ✅ OK | 104 | - | |
213-
| wolfram | ✅ OK | 501 | - | 10 |
217+
| wolfram | ✅ OK | 501 | - | |
214218
| xml | ✅ OK | 169 | - | |
215219
| xsl | ✅ OK | 171 | - | |
216220
| yaml | ✅ OK | 48 | - | |
@@ -233,30 +237,26 @@ Languages that do not throw with the JavaScript RegExp engine, but will produce
233237
| --------- | :----------------------------------------------------------------------------- | ----------------: | --------------: | ---: |
234238
| apex | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=apex) | 187 | - | 236 |
235239
| beancount | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=beancount) | 39 | - | 171 |
240+
| cpp | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=cpp) | 512 | - | 8 |
236241
| haskell | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=haskell) | 157 | - | 39 |
237242
| kotlin | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=kotlin) | 58 | - | 1953 |
238243
| kusto | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=kusto) | 60 | - | 40 |
244+
| markdown | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=markdown) | 118 | - | 915 |
239245
| nginx | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=nginx) | 378 | - | 4 |
240246
| php | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=php) | 1131 | - | 605 |
241247
| po | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=po) | 23 | - | 423 |
242248
| pug | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=pug) | 686 | - | 164 |
249+
| rst | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=rst) | 1857 | - | 62 |
243250

244251
## Unsupported Languages
245252

246253
Languages that throw with the JavaScript RegExp engine, either because they contain syntax we can't polyfill yet or because the grammar contains an invalid Oniguruma regex (that would also fail when using the WASM engine, but silently). You can try these languages with the `forgiving` option to skip errors, but usually it's best to use the Oniguruma engine instead.
247254

248-
| Language | Highlight Match | Patterns Parsable | Patterns Failed | Diff |
249-
| ---------- | :----------------------------------------------------------------------- | ----------------: | --------------: | ---: |
250-
| ada | ✅ OK | 201 | 1 | |
251-
| julia | ✅ OK | 1166 | 2 | |
252-
| fsharp | ✅ OK | 236 | 3 | |
253-
| nim | ✅ OK | 1123 | 3 | |
254-
| rst | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=rst) | 1855 | 2 | 62 |
255-
| hack | ❌ Error | 947 | 1 | 114 |
256-
| purescript | ❌ Error | 72 | 1 | 42 |
257-
| cpp | ❌ Error | 510 | 2 | 8 |
258-
| csharp | ❌ Error | 306 | 3 | 204 |
259-
| markdown | ❌ Error | 115 | 3 | 857 |
260-
| swift | ❌ Error | 326 | 3 | 40 |
261-
| mdc | ❌ Error | 779 | 4 | |
262-
| razor | ❌ Error | 952 | 5 | 22 |
255+
| Language | Highlight Match | Patterns Parsable | Patterns Failed | Diff |
256+
| ---------- | :-------------- | ----------------: | --------------: | ---: |
257+
| ada | ✅ OK | 201 | 1 | |
258+
| hack | ❌ Error | 947 | 1 | 114 |
259+
| purescript | ❌ Error | 72 | 1 | 42 |
260+
| csharp | ❌ Error | 306 | 3 | 204 |
261+
| swift | ❌ Error | 326 | 3 | 40 |
262+
| razor | ❌ Error | 952 | 5 | 22 |

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ catalog:
5353
minimist: ^1.2.8
5454
monaco-editor-core: ^0.52.0
5555
ofetch: ^1.4.1
56-
oniguruma-to-es: 0.6.1
56+
oniguruma-to-es: 0.7.0
5757
picocolors: ^1.1.1
5858
pinia: ^2.2.6
5959
pnpm: ^9.13.2

0 commit comments

Comments
 (0)