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' }],