Comparing version 0.0.3-next.2 to 0.0.3-next.3
@@ -250,2 +250,12 @@ [ | ||
{ | ||
"language": "vue", | ||
"scopeName": "source.vue", | ||
"path": "./grammars/vue.json" | ||
}, | ||
{ | ||
"language": "vue-html", | ||
"scopeName": "text.html.vue-html", | ||
"path": "./grammars/vue-html.json" | ||
}, | ||
{ | ||
"language": "xml", | ||
@@ -252,0 +262,0 @@ "scopeName": "text.xml", |
@@ -659,2 +659,24 @@ [ | ||
{ | ||
"id": "vue-html", | ||
"extensions": [ | ||
".vue.html" | ||
], | ||
"aliases": [ | ||
"Vue HTML", | ||
"Vue Html", | ||
"Vue html" | ||
], | ||
"configuration": "./language-configuration.json" | ||
}, | ||
{ | ||
"id": "vue", | ||
"extensions": [ | ||
".vue" | ||
], | ||
"aliases": [ | ||
"Vue", | ||
"vue" | ||
] | ||
}, | ||
{ | ||
"id": "xml", | ||
@@ -661,0 +683,0 @@ "extensions": [ |
import { IThemedToken } from './themedTokenizer'; | ||
export declare function getCodeTokenizer(themeName: string): Promise<(code: string, lang: string) => IThemedToken[][]>; | ||
export declare function buildHTML(lines: IThemedToken[][], langId: string): string; | ||
export declare function buildHTML(lines: IThemedToken[][], langId?: string): string; |
@@ -59,3 +59,4 @@ "use strict"; | ||
new themes_1.ThemeInfo('solarized_light', 'Solarized-light.tmTheme'), | ||
new themes_1.ThemeInfo('tomorrow_night_blue', 'Tomorrow-Night-Blue.tmTheme') | ||
new themes_1.ThemeInfo('tomorrow_night_blue', 'Tomorrow-Night-Blue.tmTheme'), | ||
new themes_1.ThemeInfo('material_palenight', 'Material-Theme-Palenight.json') | ||
]; | ||
@@ -76,3 +77,5 @@ var LANGUAGES = [ | ||
'bat', | ||
'ini' | ||
'ini', | ||
'vue', | ||
'vue-html' | ||
]; | ||
@@ -147,3 +150,7 @@ var _grammars = JSON.parse(fs.readFileSync(path.resolve(DATA_PATH, 'grammars.json')).toString('utf8')); | ||
var html = ''; | ||
html += "<pre class=\"shiki\"><div class=\"language-id\">" + langId + "</div><code>"; | ||
html += "<pre class=\"shiki\">"; | ||
if (langId) { | ||
html += "<div class=\"language-id\">" + langId + "</div>"; | ||
} | ||
html += "<code>"; | ||
lines.forEach(function (l) { | ||
@@ -150,0 +157,0 @@ if (l.length === 0) { |
{ | ||
"name": "shiki", | ||
"version": "0.0.3-next.2", | ||
"version": "0.0.3-next.3", | ||
"main": "./out/main.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1700385
101
36861