vscode-yaml
vscode-yaml copied to clipboard
Inconsistent syntax highlighting
Describe the bug
I've been using the winget schema (https://raw.githubusercontent.com/microsoft/winget-cli/master/schemas/JSON/manifests/v1.4.0/manifest.defaultLocale.1.4.0.json) to create some package manifests, when I noticed inconsistent highlighting. Both of the numbers here are specified as strings in the schema, however, only one gets highlighting.

Expected Behavior
Syntax highlighting in both or no cases
Current Behavior
Syntax highlighting in only one case
Steps to Reproduce
- Create a yaml file with the aforementioned schema
- Put numbers where strings belong
Environment
- [x] Windows
- [ ] Mac
- [ ] Linux
- [ ] other (please specify)
I noticed what's causing the different behavior. It's the amount of periods in the attribute, 2 or more never get syntax highlighting. Perhaps because one period could be interpreted as a float, is this intended behavior?
1.4.0 is defined as type string in YAML 1.2
the syntax highlighter is outdated; hasn't been updated in 6 years
Ok thanks