Skip to content

Commit 13533db

Browse files
authored
feat(engine-js): update deps, support more languages (#903)
1 parent 6dc0d93 commit 13533db

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

docs/guide/regex-engines.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Instead of compiling regular expressions on-the-fly, we also provide pre-compile
9191
Pre-compiled languages require support for RegExp UnicodeSets (the `v` flag), which requires **ES2024** or Node.js 20+, and may not work in older environments. [Can I use](https://caniuse.com/mdn-javascript_builtins_regexp_unicodesets).
9292
:::
9393

94-
You can install them with `@shikijs/langs-precompiled`, and then change your `@shikijs/langs` imports to `@shikijs/langs-precompiled`:
94+
You can install them with `@shikijs/langs-precompiled`, and change your `@shikijs/langs` imports to `@shikijs/langs-precompiled`:
9595

9696
```ts
9797
import { createHighlighterCore } from 'shiki/core'

docs/references/engine-js-compat.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

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

5-
> Generated on Monday, January 20, 2025
5+
> Generated on Tuesday, January 21, 2025
66
>
7-
> Version `1.27.2`
7+
> Version `2.0.3`
88
>
99
> Runtime: Node.js v22.11.0
1010
@@ -13,9 +13,9 @@ Compatibility reference of all built-in grammars with the [JavaScript RegExp eng
1313
| | Count |
1414
| :-------------- | --------------------------: |
1515
| Total Languages | 219 |
16-
| Supported | [213](#supported-languages) |
16+
| Supported | [214](#supported-languages) |
1717
| Mismatched | [0](#mismatched-languages) |
18-
| Unsupported | [6](#unsupported-languages) |
18+
| Unsupported | [5](#unsupported-languages) |
1919

2020
## Supported Languages
2121

@@ -54,7 +54,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
5454
| clj | ✅ OK | 38 | - | |
5555
| clojure | ✅ OK | 38 | - | |
5656
| cmake | ✅ OK | 23 | - | |
57-
| cobol | ✅ OK | 867 | - | |
57+
| cobol | ✅ OK | 868 | - | |
5858
| codeowners | ✅ OK | 4 | - | |
5959
| coffee | ✅ OK | 471 | - | |
6060
| common-lisp | ✅ OK | 60 | - | |
@@ -183,7 +183,8 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
183183
| ruby | ✅ OK | 1787 | - | |
184184
| rust | ✅ OK | 89 | - | |
185185
| sas | ✅ OK | 101 | - | |
186-
| scala | ✅ OK | 117 | - | |
186+
| sass | ✅ OK | 69 | - | |
187+
| scala | ✅ OK | 118 | - | |
187188
| scheme | ✅ OK | 34 | - | |
188189
| scss | ✅ OK | 234 | - | |
189190
| sdbl | ✅ OK | 23 | - | |
@@ -259,8 +260,7 @@ Languages that throw with the JavaScript RegExp engine, either because they cont
259260
| Language | Highlight Match | Patterns Parsable | Patterns Failed | Diff |
260261
| ---------- | :-------------- | ----------------: | --------------: | ---: |
261262
| codeql | ✅ OK | 150 | 1 | |
262-
| sass | ✅ OK | 67 | 2 | |
263+
| csharp | ❌ Error | 312 | 1 | 137 |
263264
| purescript | ❌ Error | 72 | 1 | |
264-
| csharp | ❌ Error | 310 | 3 | 137 |
265-
| razor | ❌ Error | 959 | 3 | |
266-
| swift | ❌ Error | 326 | 3 | |
265+
| razor | ❌ Error | 961 | 1 | |
266+
| swift | ❌ Error | 330 | 1 | |

pnpm-lock.yaml

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ catalog:
5656
monaco-editor-core: ^0.52.2
5757
ofetch: ^1.4.1
5858
ohash: ^1.1.4
59-
oniguruma-to-es: ^2.2.0
59+
oniguruma-to-es: ^2.3.0
6060
picocolors: ^1.1.1
6161
pinia: ^2.3.0
6262
pnpm: ^9.15.4
@@ -73,7 +73,7 @@ catalog:
7373
shiki-legacy: npm:shiki@^0.14.7
7474
simple-git-hooks: ^2.11.1
7575
taze: ^18.2.0
76-
tm-grammars: ^1.22.8
76+
tm-grammars: ^1.22.9
7777
tm-themes: ^1.9.8
7878
twoslash: ^0.2.12
7979
twoslash-vue: ^0.2.12

0 commit comments

Comments
 (0)