mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
YAML: Fix tests
This commit is contained in:
parent
cdd1cdd0be
commit
df77c1f729
2 changed files with 2 additions and 4 deletions
|
|
@ -52,7 +52,6 @@ export const language = <ILanguage> {
|
||||||
{include: '@anchor'},
|
{include: '@anchor'},
|
||||||
{include: '@tagHandle'},
|
{include: '@tagHandle'},
|
||||||
{include: '@flowCollections'},
|
{include: '@flowCollections'},
|
||||||
{include: '@flowScalars'},
|
|
||||||
{include: '@blockStyle'},
|
{include: '@blockStyle'},
|
||||||
|
|
||||||
// Numbers
|
// Numbers
|
||||||
|
|
@ -67,6 +66,8 @@ export const language = <ILanguage> {
|
||||||
// Key:Value pair
|
// Key:Value pair
|
||||||
[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ['type', 'white', 'operators', 'white']],
|
[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ['type', 'white', 'operators', 'white']],
|
||||||
|
|
||||||
|
{include: '@flowScalars'},
|
||||||
|
|
||||||
// String nodes
|
// String nodes
|
||||||
[/.+$/, {cases: {'@keywords': 'keyword', '@default': 'string'}}]
|
[/.+$/, {cases: {'@keywords': 'keyword', '@default': 'string'}}]
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -156,9 +156,6 @@ testTokenization('yaml', [
|
||||||
line: ' String',
|
line: ' String',
|
||||||
tokens: [{
|
tokens: [{
|
||||||
startIndex: 0,
|
startIndex: 0,
|
||||||
type: 'white.yaml'
|
|
||||||
}, {
|
|
||||||
startIndex: 2,
|
|
||||||
type: 'string.yaml'
|
type: 'string.yaml'
|
||||||
}]
|
}]
|
||||||
}],
|
}],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue