Skip to content

Commit 3107a2d

Browse files
committedJul 26, 2024··
feat: new ts-tags grammar, lit support, close #725
1 parent be07da8 commit 3107a2d

File tree

6 files changed

+46
-26
lines changed

6 files changed

+46
-26
lines changed
 

‎docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@unocss/reset": "^0.61.5",
1818
"@vueuse/core": "^10.11.0",
1919
"floating-vue": "^5.2.2",
20-
"pinia": "^2.1.7",
20+
"pinia": "^2.2.0",
2121
"shiki": "workspace:*",
2222
"unocss": "^0.61.5",
2323
"unplugin-vue-components": "^0.27.3",

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"vitepress-plugin-mermaid": "^2.0.16",
6565
"vitest": "^2.0.4",
6666
"vue-tsc": "^2.0.29",
67-
"wrangler": "^3.67.0"
67+
"wrangler": "^3.67.1"
6868
},
6969
"resolutions": {
7070
"@shikijs/compat": "workspace:*",

‎packages/shiki/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"@types/hast": "^3.0.4"
105105
},
106106
"devDependencies": {
107-
"tm-grammars": "^1.14.0",
107+
"tm-grammars": "^1.15.1",
108108
"tm-themes": "^1.5.7",
109109
"vscode-oniguruma": "^1.7.0"
110110
}

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

+10
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,14 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
10851085
'name': 'TOML',
10861086
'import': (() => import('./langs/toml')) as DynamicImportLanguageRegistration
10871087
},
1088+
{
1089+
'id': 'ts-tags',
1090+
'name': 'TypeScript with Tags',
1091+
'aliases': [
1092+
'lit'
1093+
],
1094+
'import': (() => import('./langs/ts-tags')) as DynamicImportLanguageRegistration
1095+
},
10881096
{
10891097
'id': 'tsv',
10901098
'name': 'TSV',
@@ -1401,6 +1409,7 @@ export type BundledLanguage =
14011409
| 'less'
14021410
| 'liquid'
14031411
| 'lisp'
1412+
| 'lit'
14041413
| 'log'
14051414
| 'logo'
14061415
| 'lua'
@@ -1505,6 +1514,7 @@ export type BundledLanguage =
15051514
| 'tfvars'
15061515
| 'toml'
15071516
| 'ts'
1517+
| 'ts-tags'
15081518
| 'tsp'
15091519
| 'tsv'
15101520
| 'tsx'

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

+10
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
274274
'name': 'TOML',
275275
'import': (() => import('./langs/toml')) as DynamicImportLanguageRegistration
276276
},
277+
{
278+
'id': 'ts-tags',
279+
'name': 'TypeScript with Tags',
280+
'aliases': [
281+
'lit'
282+
],
283+
'import': (() => import('./langs/ts-tags')) as DynamicImportLanguageRegistration
284+
},
277285
{
278286
'id': 'tsx',
279287
'name': 'TSX',
@@ -362,6 +370,7 @@ export type BundledLanguage =
362370
| 'jsx'
363371
| 'julia'
364372
| 'less'
373+
| 'lit'
365374
| 'lua'
366375
| 'markdown'
367376
| 'marko'
@@ -389,6 +398,7 @@ export type BundledLanguage =
389398
| 'svelte'
390399
| 'toml'
391400
| 'ts'
401+
| 'ts-tags'
392402
| 'tsx'
393403
| 'typescript'
394404
| 'vue'

‎pnpm-lock.yaml

+23-23
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.