0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

runtime(yaml): Fix flow mapping key detection

fixes: #15196
closes: #15313

Signed-off-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
itchyny
2024-07-21 09:21:20 +02:00
committed by Christian Brabandt
parent d887fb81b6
commit aa495124f8
8 changed files with 24 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ not a number: [.nan, .NaN, .NAN]
plain strings:
- a b c
- a * b & c @ d# e : f # comment
- a:b & c @ d# e * f # comment
- {{ f(' ') }} #8234
double quoted strings:
- ""
@@ -91,9 +91,10 @@ flow collection:
inside block mapping:
foo: {bar: baz}
bar: ["foo": {baz: qux}]
flow collection: [foo # comment
flow:collection: [foo # comment
, {bar: [{ # comment
baz: '
baz:
'
qux # not comment
' # comment
}]}]