From ff0ceb30a9ab4162d0f1241d8b0f9aa531c3c9d2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Dec 2019 18:55:34 +0100 Subject: Add semicolons --- editors/code/src/highlighting.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'editors/code/src/highlighting.ts') diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index f9d2e9d90..014e96f75 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts @@ -30,7 +30,7 @@ export function activateHighlighting(ctx: Ctx) { highlighter.setHighlights(targetEditor, params.decorations); }, ); - }) + }); vscode.workspace.onDidChangeConfiguration( _ => highlighter.removeHighlights(), @@ -173,13 +173,13 @@ class Highlighter { function initDecorations(): Map { const theme = ColorTheme.load(); - const res = new Map() + const res = new Map(); TAG_TO_SCOPES.forEach((scopes, tag) => { - if (!scopes) throw `unmapped tag: ${tag}` - let rule = theme.lookup(scopes) + if (!scopes) throw `unmapped tag: ${tag}`; + let rule = theme.lookup(scopes); const decor = createDecorationFromTextmate(rule); - res.set(tag, decor) - }) + res.set(tag, decor); + }); return res; } -- cgit v1.2.3