Fix whitespace

This commit is contained in:
Alex Dima 2020-08-26 22:35:47 +02:00
parent 3875ac87b3
commit b557a57c71
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
2 changed files with 11 additions and 11 deletions

View file

@ -283,7 +283,7 @@ testTokenization(['handlebars', 'css'], [
] ]
}], }],
// Block comment // Block comment
[{ [{
line: '{{!-- block comment --}}', line: '{{!-- block comment --}}',
tokens: [ tokens: [
@ -293,7 +293,7 @@ testTokenization(['handlebars', 'css'], [
] ]
}], }],
// Block comment with mustache // Block comment with mustache
[{ [{
line: '{{!-- block comment }} with mustache --}}', line: '{{!-- block comment }} with mustache --}}',
tokens: [ tokens: [
@ -303,7 +303,7 @@ testTokenization(['handlebars', 'css'], [
] ]
}], }],
// Handlebars comment // Handlebars comment
[{ [{
line: '{{! comment }}', line: '{{! comment }}',
tokens: [ tokens: [

View file

@ -85,14 +85,14 @@ export const language = <ILanguage>{
], ],
comment: [ comment: [
[/\}\}/, 'comment.end.handlebars', '@pop'], [/\}\}/, 'comment.end.handlebars', '@pop'],
[/./, 'comment.content.handlebars'] [/./, 'comment.content.handlebars']
], ],
commentBlock: [ commentBlock: [
[/--\}\}/, 'comment.block.end.handlebars', '@pop'], [/--\}\}/, 'comment.block.end.handlebars', '@pop'],
[/./, 'comment.content.handlebars'] [/./, 'comment.content.handlebars']
], ],
commentHtml: [ commentHtml: [
[/\{\{/, { token: '@rematch', switchTo: '@handlebarsInSimpleState.comment' }], [/\{\{/, { token: '@rematch', switchTo: '@handlebarsInSimpleState.comment' }],