Skip to content

Commit deb6822

Browse files
author
Orta
authored
Merge pull request #759 from tcztzy/master
Fix typo in build/build.ts #758
2 parents f698a98 + 5898fe4 commit deb6822

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ enum Language {
1111
enum Extension {
1212
TmLanguage = "tmLanguage",
1313
TmTheme = "tmTheme",
14-
YamlTmLangauge = "YAML-tmLanguage",
14+
YamlTmLanguage = "YAML-tmLanguage",
1515
YamlTmTheme = "YAML-tmTheme"
1616
}
1717

@@ -58,7 +58,7 @@ function transformGrammarRepository(grammar: TmGrammar, propertyNames: string[],
5858

5959
function getTsxGrammar() {
6060
let variables: MapLike<string>;
61-
const tsxUpdatesBeforeTransformation = readYaml(file(Language.TypeScriptReact, Extension.YamlTmLangauge)) as TmGrammar;
61+
const tsxUpdatesBeforeTransformation = readYaml(file(Language.TypeScriptReact, Extension.YamlTmLanguage)) as TmGrammar;
6262
const grammar = getTsGrammar(tsGrammarVariables => {
6363
variables = tsGrammarVariables;
6464
for (const variableName in tsxUpdatesBeforeTransformation.variables) {
@@ -70,9 +70,9 @@ function getTsxGrammar() {
7070

7171
// Update name, file types, scope name and uuid
7272
grammar.name = tsxUpdates.name;
73-
grammar.scopeName = tsxUpdates.scopeName;
74-
grammar.fileTypes = tsxUpdates.fileTypes;
75-
grammar.uuid = tsxUpdates.uuid;
73+
grammar.scopeName = tsxUpdates.scopeName;
74+
grammar.fileTypes = tsxUpdates.fileTypes;
75+
grammar.uuid = tsxUpdates.uuid;
7676

7777
// Update scope names to .tsx
7878
transformGrammarRepository(grammar, ["name", "contentName"], changeTsToTsx);
@@ -96,7 +96,7 @@ function getTsxGrammar() {
9696
}
9797

9898
function getTsGrammar(getVariables: (tsGrammarVariables: MapLike<string>) => MapLike<string>) {
99-
const tsGrammarBeforeTransformation = readYaml(file(Language.TypeScript, Extension.YamlTmLangauge)) as TmGrammar;
99+
const tsGrammarBeforeTransformation = readYaml(file(Language.TypeScript, Extension.YamlTmLanguage)) as TmGrammar;
100100
return updateGrammarVariables(tsGrammarBeforeTransformation, getVariables(tsGrammarBeforeTransformation.variables));
101101
}
102102

0 commit comments

Comments
 (0)