-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
1 parent
8abbd68
commit 9aa5fc0
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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 |