mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +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: '@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'}}]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -156,9 +156,6 @@ testTokenization('yaml', [
|
|||
line: ' String',
|
||||
tokens: [{
|
||||
startIndex: 0,
|
||||
type: 'white.yaml'
|
||||
}, {
|
||||
startIndex: 2,
|
||||
type: 'string.yaml'
|
||||
}]
|
||||
}],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue