mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
This commit is contained in:
parent
0500e21d95
commit
d6197d6e14
2 changed files with 26 additions and 1 deletions
|
|
@ -449,5 +449,30 @@ testTokenization('yaml', [
|
|||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
line:
|
||||
"text: Pretty vector drawing. #this is comment doesn't have proper syntax higlighting",
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'type.yaml' },
|
||||
{ startIndex: 4, type: 'operators.yaml' },
|
||||
{ startIndex: 5, type: 'white.yaml' },
|
||||
{ startIndex: 6, type: 'string.yaml' },
|
||||
{ startIndex: 29, type: 'comment.yaml' }
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
line: "number: 3 #this comment also doesn't have proper syntax highlighting",
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'type.yaml' },
|
||||
{ startIndex: 6, type: 'operators.yaml' },
|
||||
{ startIndex: 7, type: 'white.yaml' },
|
||||
{ startIndex: 8, type: 'string.yaml' },
|
||||
{ startIndex: 10, type: 'comment.yaml' }
|
||||
]
|
||||
}
|
||||
]
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export const language = <languages.IMonarchLanguage>{
|
|||
|
||||
// String nodes
|
||||
[
|
||||
/.+$/,
|
||||
/[^#]+/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue