d056950 пре 8 година
родитељ
комит
df77c1f729
2 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 1
      src/yaml.ts
  2. 0 3
      test/yaml.test.ts

+ 2 - 1
src/yaml.ts

@@ -52,7 +52,6 @@ export const language = <ILanguage> {
 			{include: '@anchor'},
 			{include: '@tagHandle'},
 			{include: '@flowCollections'},
-			{include: '@flowScalars'},
 			{include: '@blockStyle'},
 
 			// Numbers
@@ -67,6 +66,8 @@ export const language = <ILanguage> {
 			// Key:Value pair
 			[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ['type', 'white', 'operators', 'white']],
 
+			{include: '@flowScalars'},
+
 			// String nodes
 			[/.+$/, {cases: {'@keywords': 'keyword', '@default': 'string'}}]
 		],

+ 0 - 3
test/yaml.test.ts

@@ -156,9 +156,6 @@ testTokenization('yaml', [
 		line: '  String',
 		tokens: [{
 			startIndex: 0,
-			type: 'white.yaml'
-		}, {
-			startIndex: 2,
 			type: 'string.yaml'
 		}]
 	}],