Open karelbilek opened 2 months ago
.
gets YAML parsed as a string, shows in extension as float (incorrect)
.3
gets YAML parsed as a float, shows in extension as float (correct)
..3
gets YAML parsed as a string, shows in extension as float (incorrect)
one: .
two: .3
three: ..3
{
"one": ".",
"two": 0.3,
"three": "..3"
}
Describe the bug
When a single dot is a value in key/value map, it is shown as a float while YAML parses it as a string
Expected Behavior
The dot has highlight as a string
Current Behavior
The dot has highlight as a float
Steps to Reproduce
.
should be highlighted as a string, not as a number. Because YAML will parse it as a string. This parsed as a JSON is:Environment