瀏覽代碼

Fix whitespace

Alex Dima 4 年之前
父節點
當前提交
b557a57c71
共有 2 個文件被更改,包括 12 次插入12 次删除
  1. 4 4
      src/handlebars/handlebars.test.ts
  2. 8 8
      src/handlebars/handlebars.ts

+ 4 - 4
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: [

+ 8 - 8
src/handlebars/handlebars.ts

@@ -85,14 +85,14 @@ export const language = <ILanguage>{
 		],
 
 		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' }],