We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a single dot is a value in key/value map, it is shown as a float while YAML parses it as a string
The dot has highlight as a string
The dot has highlight as a float
paths: etc: /etc pwd: . number: 3 up: ./..
. should be highlighted as a string, not as a number. Because YAML will parse it as a string. This parsed as a JSON is:
.
{ "paths": { "etc": "/etc", "pwd": ".", "number": 3, "up": "./.." } }
The text was updated successfully, but these errors were encountered:
. 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
..3 gets YAML parsed as a string, shows in extension as float (incorrect)
..3
Sorry, something went wrong.
one: . two: .3 three: ..3
{ "one": ".", "two": 0.3, "three": "..3" }
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: