@shikijs/engine-javascript 1.27.1 → 1.28.0
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/dist/engine-compile.mjs +4 -1
- package/package.json +3 -3
package/dist/engine-compile.mjs
CHANGED
|
@@ -16,7 +16,10 @@ function defaultJavaScriptRegexConstructor(pattern, options) {
|
|
|
16
16
|
captureGroup: true,
|
|
17
17
|
// Oniguruma uses depth limit `20`; lowered here to keep regexes shorter and maybe
|
|
18
18
|
// sometimes faster, but can be increased if issues reported due to low limit
|
|
19
|
-
recursionLimit: 5
|
|
19
|
+
recursionLimit: 5,
|
|
20
|
+
// Oniguruma option for `^`->`\A`, `$`->`\Z`; improves search performance without any
|
|
21
|
+
// change in meaning since TM grammars search line by line
|
|
22
|
+
singleline: true
|
|
20
23
|
},
|
|
21
24
|
...options
|
|
22
25
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/engine-javascript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.28.0",
|
|
5
5
|
"description": "Engine for Shiki using JavaScript's native RegExp",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@shikijs/vscode-textmate": "^10.0.1",
|
|
38
|
-
"oniguruma-to-es": "^2.
|
|
39
|
-
"@shikijs/types": "1.
|
|
38
|
+
"oniguruma-to-es": "^2.2.0",
|
|
39
|
+
"@shikijs/types": "1.28.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|