YAML: Fix tests

This commit is contained in:
d056950 2016-10-04 14:27:07 +02:00
parent cdd1cdd0be
commit df77c1f729
2 changed files with 2 additions and 4 deletions

View file

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

View file

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