This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/yaml/test_yaml_colon_in_key.txt
Greg Dubicki 9aa5fc0185 Accept colon(s) in YAML key names
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)
2022-11-14 14:59:14 +01:00

11 lines
244 B
Text

# Colon 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