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

Add syntax highlighting / textmate scope for numbers (again) #101

Open
ShadowCreator250 opened this issue Oct 28, 2023 · 0 comments
Open

Comments

@ShadowCreator250
Copy link

Apparently, this extension doesn't recognize numbers (anymore).
I know from #27 that it once had this feature.
Numbers are now only recognized as simple properties (Command Palette > Developer: Inspect Editor Tokens and Scopes):
Result of running "Developer: Inspect Editor Tokens and Scopes"

Is it possible to match only numbers with 1 . in them? This would prevent #27.

A suitable (partial) regex could look something like this: ([+-]?)([0-9]([0-9_]*[0-9])?)(\.[0-9]([0-9_]*[0-9])?)?$

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

1 participant