vscode-yaml
vscode-yaml copied to clipboard
Single dot shows as a float while it's a string
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
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": "./.."
}
}
Environment
- [ ] Windows
- [x] Mac
- [ ] Linux
- [ ] other (please specify)