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
246 B
Text
11 lines
246 B
Text
# Colons in the key name is accepted by the YAML specs too
|
|
|
|
---input---
|
|
foo::bar: value
|
|
|
|
---tokens---
|
|
'foo::bar' Name.Tag
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'value' Literal.Scalar.Plain
|
|
'\n' Text.Whitespace
|