From b557a57c71c7de1cf4866e7582fd930e76b0ec9e Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 26 Aug 2020 22:35:47 +0200 Subject: [PATCH] Fix whitespace --- src/handlebars/handlebars.test.ts | 8 ++++---- src/handlebars/handlebars.ts | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/handlebars/handlebars.test.ts b/src/handlebars/handlebars.test.ts index 16032c81..71738d77 100644 --- a/src/handlebars/handlebars.test.ts +++ b/src/handlebars/handlebars.test.ts @@ -283,7 +283,7 @@ testTokenization(['handlebars', 'css'], [ ] }], - // Block comment + // Block comment [{ line: '{{!-- block comment --}}', tokens: [ @@ -292,8 +292,8 @@ testTokenization(['handlebars', 'css'], [ { startIndex: 20, type: 'comment.block.end.handlebars' } ] }], - - // Block comment with mustache + + // Block comment with mustache [{ line: '{{!-- block comment }} with mustache --}}', tokens: [ @@ -303,7 +303,7 @@ testTokenization(['handlebars', 'css'], [ ] }], - // Handlebars comment + // Handlebars comment [{ line: '{{! comment }}', tokens: [ diff --git a/src/handlebars/handlebars.ts b/src/handlebars/handlebars.ts index 8be0e6b8..17db3fc3 100644 --- a/src/handlebars/handlebars.ts +++ b/src/handlebars/handlebars.ts @@ -85,14 +85,14 @@ export const language = { ], comment: [ - [/\}\}/, 'comment.end.handlebars', '@pop'], - [/./, 'comment.content.handlebars'] - ], - - commentBlock: [ - [/--\}\}/, 'comment.block.end.handlebars', '@pop'], - [/./, 'comment.content.handlebars'] - ], + [/\}\}/, 'comment.end.handlebars', '@pop'], + [/./, 'comment.content.handlebars'] + ], + + commentBlock: [ + [/--\}\}/, 'comment.block.end.handlebars', '@pop'], + [/./, 'comment.content.handlebars'] + ], commentHtml: [ [/\{\{/, { token: '@rematch', switchTo: '@handlebarsInSimpleState.comment' }],