-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
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
yaml grammar recognises some integers as strings (or vice versa?) #39
Comments
I think it's not a mistake. Number starts with 0 is an octal, 08 and 09 are error format number |
I am not really sure what you mean by this but it still seems inconsistent to me. |
The check for base 10 (decimal) numbers does not allow for leading yaml.tmbundle/Syntaxes/YAML.tmLanguage Line 807 in e54ceae
cases yaml.tmbundle/Syntaxes/YAML.tmLanguage Line 806 in e54ceae
I'm not sure what numerical values in yaml are valid or not Issue moved from: microsoft/vscode-textmate#168 |
Does this issue occur when all extensions are disabled?: Yes
OS is Ubuntu 20.04
Description:
Some integers (or strings?) are treated differently even though they look the same to me.
In each comment I've specified what the scope inspector reports the scope as.
This is what it ends up looking like for me:
I'd expect them all to be the same; so either they should all be integers or they should all be unquoted strings.
Test case:
Steps to Reproduce:
test.yml
with the contents from the test caseOriginally from @pedroterzero in microsoft/vscode#143368
The text was updated successfully, but these errors were encountered: