Skip to content

Commit

Permalink
feat: bump js engine dependencies to support more grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Nov 27, 2024
1 parent 76cbc7e commit f2093c3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
48 changes: 24 additions & 24 deletions docs/references/engine-js-compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

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

> Generated on Sunday, November 24, 2024
> Generated on Wednesday, November 27, 2024
>
> Version `1.23.1`
>
> Runtime: Node.js v22.11.0
## Report Summary

| | Count |
| :-------------- | ---------------------------: |
| Total Languages | 215 |
| Supported | [193](#supported-languages) |
| Mismatched | [9](#mismatched-languages) |
| Unsupported | [13](#unsupported-languages) |
| | Count |
| :-------------- | --------------------------: |
| Total Languages | 215 |
| Supported | [197](#supported-languages) |
| Mismatched | [12](#mismatched-languages) |
| Unsupported | [6](#unsupported-languages) |

## Supported Languages

Expand Down Expand Up @@ -80,6 +80,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
| fluent | ✅ OK | 23 | - | |
| fortran-fixed-form | ✅ OK | 332 | - | |
| fortran-free-form | ✅ OK | 328 | - | |
| fsharp | ✅ OK | 239 | - | |
| fsl | ✅ OK | 30 | - | |
| gdresource | ✅ OK | 157 | - | |
| gdscript | ✅ OK | 93 | - | |
Expand Down Expand Up @@ -117,6 +118,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
| jsonnet | ✅ OK | 33 | - | |
| jssm | ✅ OK | 30 | - | |
| jsx | ✅ OK | 376 | - | |
| julia | ✅ OK | 1168 | - | |
| latex | ✅ OK | 283 | - | |
| lean | ✅ OK | 32 | - | |
| less | ✅ OK | 280 | - | |
Expand All @@ -128,13 +130,15 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
| make | ✅ OK | 51 | - | |
| marko | ✅ OK | 926 | - | |
| matlab | ✅ OK | 88 | - | |
| mdc | ✅ OK | 783 | - | |
| mdx | ✅ OK | 197 | - | |
| mermaid | ✅ OK | 129 | - | |
| mipsasm | ✅ OK | 17 | - | |
| mojo | ✅ OK | 213 | - | |
| move | ✅ OK | 120 | - | |
| narrat | ✅ OK | 34 | - | |
| nextflow | ✅ OK | 32 | - | |
| nim | ✅ OK | 1126 | - | |
| nix | ✅ OK | 80 | - | |
| nushell | ✅ OK | 81 | - | |
| objective-c | ✅ OK | 223 | - | |
Expand All @@ -155,7 +159,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
| qmldir | ✅ OK | 7 | - | |
| qss | ✅ OK | 31 | - | |
| r | ✅ OK | 71 | - | |
| racket | ✅ OK | 69 | - | 8 |
| racket | ✅ OK | 69 | - | |
| raku | ✅ OK | 52 | - | |
| reg | ✅ OK | 9 | - | |
| regexp | ✅ OK | 34 | - | |
Expand Down Expand Up @@ -210,7 +214,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
| wenyan | ✅ OK | 18 | - | |
| wgsl | ✅ OK | 44 | - | |
| wikitext | ✅ OK | 104 | - | |
| wolfram | ✅ OK | 501 | - | 10 |
| wolfram | ✅ OK | 501 | - | |
| xml | ✅ OK | 169 | - | |
| xsl | ✅ OK | 171 | - | |
| yaml | ✅ OK | 48 | - | |
Expand All @@ -233,30 +237,26 @@ Languages that do not throw with the JavaScript RegExp engine, but will produce
| --------- | :----------------------------------------------------------------------------- | ----------------: | --------------: | ---: |
| apex | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=apex) | 187 | - | 236 |
| beancount | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=beancount) | 39 | - | 171 |
| cpp | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=cpp) | 512 | - | 8 |
| haskell | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=haskell) | 157 | - | 39 |
| kotlin | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=kotlin) | 58 | - | 1953 |
| kusto | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=kusto) | 60 | - | 40 |
| markdown | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=markdown) | 118 | - | 915 |
| nginx | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=nginx) | 378 | - | 4 |
| php | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=php) | 1131 | - | 605 |
| po | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=po) | 23 | - | 423 |
| pug | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=pug) | 686 | - | 164 |
| rst | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=rst) | 1857 | - | 62 |

## Unsupported Languages

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.

| Language | Highlight Match | Patterns Parsable | Patterns Failed | Diff |
| ---------- | :----------------------------------------------------------------------- | ----------------: | --------------: | ---: |
| ada | ✅ OK | 201 | 1 | |
| julia | ✅ OK | 1166 | 2 | |
| fsharp | ✅ OK | 236 | 3 | |
| nim | ✅ OK | 1123 | 3 | |
| rst | [🚧 Mismatch](https://textmate-grammars-themes.netlify.app/?grammar=rst) | 1855 | 2 | 62 |
| hack | ❌ Error | 947 | 1 | 114 |
| purescript | ❌ Error | 72 | 1 | 42 |
| cpp | ❌ Error | 510 | 2 | 8 |
| csharp | ❌ Error | 306 | 3 | 204 |
| markdown | ❌ Error | 115 | 3 | 857 |
| swift | ❌ Error | 326 | 3 | 40 |
| mdc | ❌ Error | 779 | 4 | |
| razor | ❌ Error | 952 | 5 | 22 |
| Language | Highlight Match | Patterns Parsable | Patterns Failed | Diff |
| ---------- | :-------------- | ----------------: | --------------: | ---: |
| ada | ✅ OK | 201 | 1 | |
| hack | ❌ Error | 947 | 1 | 114 |
| purescript | ❌ Error | 72 | 1 | 42 |
| csharp | ❌ Error | 306 | 3 | 204 |
| swift | ❌ Error | 326 | 3 | 40 |
| razor | ❌ Error | 952 | 5 | 22 |
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ catalog:
minimist: ^1.2.8
monaco-editor-core: ^0.52.0
ofetch: ^1.4.1
oniguruma-to-es: 0.6.1
oniguruma-to-es: 0.7.0
picocolors: ^1.1.1
pinia: ^2.2.6
pnpm: ^9.13.2
Expand Down

0 comments on commit f2093c3

Please sign in to comment.