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:
committed by
Christian Brabandt
parent
d887fb81b6
commit
aa495124f8
@@ -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
|
||||
}]}]
|
||||
|
Reference in New Issue
Block a user