Skip to content

Commit

Permalink
feat: new ts-tags grammar, lit support, close #725
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 26, 2024
1 parent be07da8 commit 3107a2d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@unocss/reset": "^0.61.5",
"@vueuse/core": "^10.11.0",
"floating-vue": "^5.2.2",
"pinia": "^2.1.7",
"pinia": "^2.2.0",
"shiki": "workspace:*",
"unocss": "^0.61.5",
"unplugin-vue-components": "^0.27.3",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"vitepress-plugin-mermaid": "^2.0.16",
"vitest": "^2.0.4",
"vue-tsc": "^2.0.29",
"wrangler": "^3.67.0"
"wrangler": "^3.67.1"
},
"resolutions": {
"@shikijs/compat": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@types/hast": "^3.0.4"
},
"devDependencies": {
"tm-grammars": "^1.14.0",
"tm-grammars": "^1.15.1",
"tm-themes": "^1.5.7",
"vscode-oniguruma": "^1.7.0"
}
Expand Down
10 changes: 10 additions & 0 deletions packages/shiki/src/assets/langs-bundle-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,14 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'TOML',
'import': (() => import('./langs/toml')) as DynamicImportLanguageRegistration
},
{
'id': 'ts-tags',
'name': 'TypeScript with Tags',
'aliases': [
'lit'
],
'import': (() => import('./langs/ts-tags')) as DynamicImportLanguageRegistration
},
{
'id': 'tsv',
'name': 'TSV',
Expand Down Expand Up @@ -1401,6 +1409,7 @@ export type BundledLanguage =
| 'less'
| 'liquid'
| 'lisp'
| 'lit'
| 'log'
| 'logo'
| 'lua'
Expand Down Expand Up @@ -1505,6 +1514,7 @@ export type BundledLanguage =
| 'tfvars'
| 'toml'
| 'ts'
| 'ts-tags'
| 'tsp'
| 'tsv'
| 'tsx'
Expand Down
10 changes: 10 additions & 0 deletions packages/shiki/src/assets/langs-bundle-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'TOML',
'import': (() => import('./langs/toml')) as DynamicImportLanguageRegistration
},
{
'id': 'ts-tags',
'name': 'TypeScript with Tags',
'aliases': [
'lit'
],
'import': (() => import('./langs/ts-tags')) as DynamicImportLanguageRegistration
},
{
'id': 'tsx',
'name': 'TSX',
Expand Down Expand Up @@ -362,6 +370,7 @@ export type BundledLanguage =
| 'jsx'
| 'julia'
| 'less'
| 'lit'
| 'lua'
| 'markdown'
| 'marko'
Expand Down Expand Up @@ -389,6 +398,7 @@ export type BundledLanguage =
| 'svelte'
| 'toml'
| 'ts'
| 'ts-tags'
| 'tsx'
| 'typescript'
| 'vue'
Expand Down
46 changes: 23 additions & 23 deletions pnpm-lock.yaml

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

0 comments on commit 3107a2d

Please sign in to comment.