Skip to content

Commit 8ea8513

Browse files
committedMay 18, 2024
feat: new regexp grammar
1 parent ed31ee5 commit 8ea8513

8 files changed

+588
-677
lines changed
 

‎docs/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"@iconify-json/svg-spinners": "^1.1.2",
1515
"@shikijs/transformers": "workspace:*",
1616
"@shikijs/twoslash": "workspace:*",
17-
"@unocss/reset": "^0.59.4",
17+
"@unocss/reset": "^0.60.2",
1818
"@vueuse/core": "^10.9.0",
1919
"floating-vue": "^5.2.2",
2020
"pinia": "^2.1.7",
2121
"shiki": "workspace:*",
22-
"unocss": "^0.59.4",
22+
"unocss": "^0.60.2",
2323
"unplugin-vue-components": "^0.27.0",
24-
"vitepress": "^1.1.4",
24+
"vitepress": "^1.2.0",
2525
"vue": "^3.4.27"
2626
}
2727
}

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prepare": "simple-git-hooks"
1515
},
1616
"devDependencies": {
17-
"@antfu/eslint-config": "^2.18.0",
17+
"@antfu/eslint-config": "^2.18.1",
1818
"@antfu/ni": "^0.21.12",
1919
"@antfu/utils": "^0.7.8",
2020
"@rollup/plugin-alias": "^5.1.0",
@@ -34,7 +34,7 @@
3434
"@vitest/coverage-v8": "^1.6.0",
3535
"ansi-sequence-parser": "^1.1.1",
3636
"bumpp": "^9.4.1",
37-
"eslint": "^9.2.0",
37+
"eslint": "^9.3.0",
3838
"eslint-plugin-format": "^0.1.1",
3939
"esno": "^4.7.0",
4040
"fast-glob": "^3.3.2",
@@ -51,7 +51,7 @@
5151
"rimraf": "^5.0.7",
5252
"rollup": "^4.17.2",
5353
"rollup-plugin-copy": "^3.5.0",
54-
"rollup-plugin-dts": "^6.1.0",
54+
"rollup-plugin-dts": "^6.1.1",
5555
"rollup-plugin-esbuild": "^6.1.1",
5656
"rollup-plugin-typescript2": "^0.36.0",
5757
"shiki": "workspace:*",
@@ -63,8 +63,8 @@
6363
"vite-tsconfig-paths": "^4.3.2",
6464
"vitepress-plugin-mermaid": "^2.0.16",
6565
"vitest": "^1.6.0",
66-
"vue-tsc": "^2.0.17",
67-
"wrangler": "^3.55.0"
66+
"vue-tsc": "^2.0.19",
67+
"wrangler": "^3.57.0"
6868
},
6969
"resolutions": {
7070
"@shikijs/compat": "workspace:*",

‎packages/shiki/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"@shikijs/core": "workspace:*"
104104
},
105105
"devDependencies": {
106-
"tm-grammars": "^1.11.3",
106+
"tm-grammars": "^1.12.1",
107107
"tm-themes": "^1.4.3",
108108
"vscode-oniguruma": "^1.7.0"
109109
}

‎packages/shiki/src/assets/langs-bundle-full.ts

+10
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,14 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
868868
'name': 'Windows Registry Script',
869869
'import': (() => import('./langs/reg')) as DynamicImportLanguageRegistration
870870
},
871+
{
872+
'id': 'regexp',
873+
'name': 'RegExp',
874+
'aliases': [
875+
'regex'
876+
],
877+
'import': (() => import('./langs/regexp')) as DynamicImportLanguageRegistration
878+
},
871879
{
872880
'id': 'rel',
873881
'name': 'Rel',
@@ -1427,6 +1435,8 @@ export type BundledLanguage =
14271435
| 'razor'
14281436
| 'rb'
14291437
| 'reg'
1438+
| 'regex'
1439+
| 'regexp'
14301440
| 'rel'
14311441
| 'riscv'
14321442
| 'rs'

‎packages/shiki/test/bundle.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ it('bundle-full', async () => {
77
}))
88

99
expect(highlighter.getLoadedLanguages().length)
10-
.toMatchInlineSnapshot(`291`)
10+
.toMatchInlineSnapshot(`293`)
1111
})
1212

1313
it('bundle-web', async () => {

‎packages/shiki/test/out/injections-side-effects-angular-ts-after.html

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

‎packages/twoslash/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"devDependencies": {
6262
"@iconify-json/carbon": "^1.1.33",
63-
"@iconify-json/codicon": "^1.1.48",
63+
"@iconify-json/codicon": "^1.1.49",
6464
"@shikijs/twoslash": "^3.1.2",
6565
"hast-util-from-html": "^2.0.1",
6666
"typescript": "^5.4.5"

‎pnpm-lock.yaml

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

0 commit comments

Comments
 (0)
Please sign in to comment.