Skip to content

Commit

Permalink
feat(engine-js): update deps, support more languages (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan authored Jan 22, 2025
1 parent 6dc0d93 commit 13533db
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion docs/guide/regex-engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Instead of compiling regular expressions on-the-fly, we also provide pre-compile
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).
:::

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

```ts
import { createHighlighterCore } from 'shiki/core'
Expand Down
20 changes: 10 additions & 10 deletions docs/references/engine-js-compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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

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

## Supported Languages

Expand Down Expand Up @@ -54,7 +54,7 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
| clj | ✅ OK | 38 | - | |
| clojure | ✅ OK | 38 | - | |
| cmake | ✅ OK | 23 | - | |
| cobol | ✅ OK | 867 | - | |
| cobol | ✅ OK | 868 | - | |
| codeowners | ✅ OK | 4 | - | |
| coffee | ✅ OK | 471 | - | |
| common-lisp | ✅ OK | 60 | - | |
Expand Down Expand Up @@ -183,7 +183,8 @@ In some edge cases, it's not guaranteed that the highlighting will be 100% the s
| ruby | ✅ OK | 1787 | - | |
| rust | ✅ OK | 89 | - | |
| sas | ✅ OK | 101 | - | |
| scala | ✅ OK | 117 | - | |
| sass | ✅ OK | 69 | - | |
| scala | ✅ OK | 118 | - | |
| scheme | ✅ OK | 34 | - | |
| scss | ✅ OK | 234 | - | |
| sdbl | ✅ OK | 23 | - | |
Expand Down Expand Up @@ -259,8 +260,7 @@ Languages that throw with the JavaScript RegExp engine, either because they cont
| Language | Highlight Match | Patterns Parsable | Patterns Failed | Diff |
| ---------- | :-------------- | ----------------: | --------------: | ---: |
| codeql | ✅ OK | 150 | 1 | |
| sass | ✅ OK | 67 | 2 | |
| csharp | ❌ Error | 312 | 1 | 137 |
| purescript | ❌ Error | 72 | 1 | |
| csharp | ❌ Error | 310 | 3 | 137 |
| razor | ❌ Error | 959 | 3 | |
| swift | ❌ Error | 326 | 3 | |
| razor | ❌ Error | 961 | 1 | |
| swift | ❌ Error | 330 | 1 | |
30 changes: 15 additions & 15 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ catalog:
monaco-editor-core: ^0.52.2
ofetch: ^1.4.1
ohash: ^1.1.4
oniguruma-to-es: ^2.2.0
oniguruma-to-es: ^2.3.0
picocolors: ^1.1.1
pinia: ^2.3.0
pnpm: ^9.15.4
Expand All @@ -73,7 +73,7 @@ catalog:
shiki-legacy: npm:shiki@^0.14.7
simple-git-hooks: ^2.11.1
taze: ^18.2.0
tm-grammars: ^1.22.8
tm-grammars: ^1.22.9
tm-themes: ^1.9.8
twoslash: ^0.2.12
twoslash-vue: ^0.2.12
Expand Down

0 comments on commit 13533db

Please sign in to comment.