Add typescript support
This commit is contained in:
parent
d68cc3843e
commit
182542a77c
6 changed files with 352 additions and 1 deletions
|
|
@ -270,11 +270,13 @@ function convertLanguage(name) {
|
|||
var languageHighlightRules = fillTemplate(modeHighlightTemplate, {
|
||||
language: languageNameSanitized,
|
||||
languageTokens: patterns,
|
||||
respositoryRules: "/*** START REPOSITORY RULES\n" + repository + "\nEND REPOSITORY RULES ***/",
|
||||
respositoryRules: "/*** START REPOSITORY RULES\n" + (Object.keys(repository).length === 0 ? "" : repository) + "\nEND REPOSITORY RULES ***/",
|
||||
uuid: language.uuid
|
||||
});
|
||||
|
||||
if (devMode) {
|
||||
console.log(languageMode)
|
||||
console.log(languageHighlightRules)
|
||||
console.log("Not writing, 'cause we're in dev mode, baby.");
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue