as it's ok according to the YAML specs and is widely used in the real world, f.e. in Puppet's Hiera (https://puppet.com/docs/puppet/7/hiera_quick.html#values_common_data)
11 lines
258 B
Text
11 lines
258 B
Text
# Colon at the beginning of the key name is accepted by the YAML specs too
|
|
|
|
---input---
|
|
:foo: value
|
|
|
|
---tokens---
|
|
':foo' Name.Tag
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'value' Literal.Scalar.Plain
|
|
'\n' Text.Whitespace
|