mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
YAML: Correctly terminate numbers in Flow Collections
This commit is contained in:
parent
5e78e912f2
commit
cdd1cdd0be
1 changed files with 8 additions and 8 deletions
16
src/yaml.ts
16
src/yaml.ts
|
|
@ -170,15 +170,15 @@ export const language = <ILanguage> {
|
|||
[/[>|][0-9]*[+-]?$/, 'operators', '@multiString']
|
||||
],
|
||||
|
||||
// Numbers in Flow Collections (terminate with ,)
|
||||
// Numbers in Flow Collections (terminate with ,]})
|
||||
flowNumber: [
|
||||
[/@numberInteger(?=[ \t]*,)/, 'number'],
|
||||
[/@numberFloat(?=[ \t]*,)/, 'number.float'],
|
||||
[/@numberOctal(?=[ \t]*,)/, 'number.octal'],
|
||||
[/@numberHex(?=[ \t]*,)/, 'number.hex'],
|
||||
[/@numberInfinity(?=[ \t]*,)/, 'number.infinity'],
|
||||
[/@numberNaN(?=[ \t]*,)/, 'number.nan'],
|
||||
[/@numberDate(?=[ \t]*,)/, 'number.date']
|
||||
[/@numberInteger(?=[ \t]*[,\]\}])/, 'number'],
|
||||
[/@numberFloat(?=[ \t]*[,\]\}])/, 'number.float'],
|
||||
[/@numberOctal(?=[ \t]*[,\]\}])/, 'number.octal'],
|
||||
[/@numberHex(?=[ \t]*[,\]\}])/, 'number.hex'],
|
||||
[/@numberInfinity(?=[ \t]*[,\]\}])/, 'number.infinity'],
|
||||
[/@numberNaN(?=[ \t]*[,\]\}])/, 'number.nan'],
|
||||
[/@numberDate(?=[ \t]*[,\]\}])/, 'number.date']
|
||||
],
|
||||
|
||||
tagHandle: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue