Skip to content

Commit

Permalink
feat: update grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 7, 2024
1 parent 65b20f5 commit 317be40
Show file tree
Hide file tree
Showing 7 changed files with 638 additions and 499 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"@iconify-json/svg-spinners": "^1.1.2",
"@shikijs/transformers": "workspace:*",
"@shikijs/twoslash": "workspace:*",
"@unocss/reset": "^0.61.0",
"@unocss/reset": "^0.61.2",
"@vueuse/core": "^10.11.0",
"floating-vue": "^5.2.2",
"pinia": "^2.1.7",
"shiki": "workspace:*",
"unocss": "^0.61.0",
"unocss": "^0.61.2",
"unplugin-vue-components": "^0.27.2",
"vitepress": "^1.2.3",
"vue": "^3.4.31"
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.2",
"@antfu/eslint-config": "^2.22.0-beta.1",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.10",
"@rollup/plugin-alias": "^5.1.0",
Expand All @@ -30,7 +30,7 @@
"@shikijs/vitepress-twoslash": "workspace:*",
"@types/fs-extra": "^11.0.4",
"@types/hast": "^3.0.4",
"@types/node": "^20.14.9",
"@types/node": "^20.14.10",
"@vitest/coverage-v8": "^1.6.0",
"ansi-sequence-parser": "^1.1.1",
"bumpp": "^9.4.1",
Expand All @@ -48,23 +48,23 @@
"ofetch": "^1.3.4",
"pnpm": "^9.4.0",
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"rimraf": "^5.0.8",
"rollup": "^4.18.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-typescript2": "^0.36.0",
"shiki": "workspace:*",
"simple-git-hooks": "^2.11.1",
"taze": "^0.14.1",
"taze": "^0.14.2",
"typescript": "^5.5.3",
"unbuild": "^2.0.0",
"vite": "^5.3.2",
"vite": "^5.3.3",
"vite-tsconfig-paths": "^4.3.2",
"vitepress-plugin-mermaid": "^2.0.16",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.24",
"wrangler": "^3.62.0"
"vue-tsc": "^2.0.26",
"wrangler": "^3.63.1"
},
"resolutions": {
"@shikijs/compat": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/monaco/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"play": "vite"
},
"devDependencies": {
"typescript": "^5.5.2",
"vite": "^5.3.2"
"typescript": "^5.5.3",
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions packages/shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
"@shikijs/core": "workspace:*"
},
"devDependencies": {
"tm-grammars": "^1.13.0",
"tm-themes": "^1.5.0",
"tm-grammars": "^1.13.6",
"tm-themes": "^1.5.1",
"vscode-oniguruma": "^1.7.0"
}
}
16 changes: 10 additions & 6 deletions packages/shiki/src/assets/langs-bundle-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'CSS',
'import': (() => import('./langs/css')) as DynamicImportLanguageRegistration
},
{
'id': 'edge',
'name': 'Edge',
'import': (() => import('./langs/edge')) as DynamicImportLanguageRegistration
},
{
'id': 'glsl',
'name': 'GLSL',
Expand Down Expand Up @@ -219,6 +214,14 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'R',
'import': (() => import('./langs/r')) as DynamicImportLanguageRegistration
},
{
'id': 'regexp',
'name': 'RegExp',
'aliases': [
'regex'
],
'import': (() => import('./langs/regexp')) as DynamicImportLanguageRegistration
},
{
'id': 'ruby',
'name': 'Ruby',
Expand Down Expand Up @@ -335,7 +338,6 @@ export type BundledLanguage =
| 'coffeescript'
| 'cpp'
| 'css'
| 'edge'
| 'glsl'
| 'gql'
| 'graphql'
Expand Down Expand Up @@ -373,6 +375,8 @@ export type BundledLanguage =
| 'python'
| 'r'
| 'rb'
| 'regex'
| 'regexp'
| 'ruby'
| 'sass'
| 'scss'
Expand Down
2 changes: 1 addition & 1 deletion packages/twoslash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@
"@iconify-json/codicon": "^1.1.49",
"@shikijs/twoslash": "^3.1.2",
"hast-util-from-html": "^2.0.1",
"typescript": "^5.5.2"
"typescript": "^5.5.3"
}
}
Loading

0 comments on commit 317be40

Please sign in to comment.