Skip to content
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 highlighting/textmate recognises some integers as strings (or vice versa?) #168

Open
pedroterzero opened this issue Feb 17, 2022 · 1 comment

Comments

@pedroterzero
Copy link

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.

Testcase:

test:
  - test: 01 # constant.numeric.integer.yaml
  - test: 02 # constant.numeric.integer.yaml
  - test: 03 # constant.numeric.integer.yaml
  - test: 04 # constant.numeric.integer.yaml
  - test: 05 # constant.numeric.integer.yaml
  - test: 06 # constant.numeric.integer.yaml
  - test: 07 # constant.numeric.integer.yaml
  - test: 08 # string.unquoted.plain.out.yaml
  - test: 09 # string.unquoted.plain.out.yaml
  - test: 10 # constant.numeric.integer.yaml

This is what it ends up looking like for me:
Screenshot from 2022-02-17 19-34-06

I'd expect them all to be the same; so either they should all be integers or they should all be unquoted strings. Right?

@pedroterzero pedroterzero changed the title TextMate recognises some integers as strings (or vice versa?) yaml highlighting/textmate recognises some integers as strings (or vice versa?) Feb 17, 2022
@RedCMD
Copy link

RedCMD commented Apr 28, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants