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

Syntax highlight not perfect if symbol name starts with number #331

Open
LuminarLight opened this issue Jan 22, 2024 · 1 comment
Open

Comments

@LuminarLight
Copy link

I hope I am using correct terminology here. But basically the issue is this:

image

The 4 should be colored the same color as the characters right after it.
GOAL supports starting symbol name with number, and they do actually have some symbol names starting with numbers in 3/X. (I have even seen one that has space in the middle 💀)

I have absolutely no idea how these syntax highlight things work, but hopefully it can be fixed.

@xTVaser
Copy link
Member

xTVaser commented Jan 22, 2024

Symbols cannot have spaces, that would not be valid lisp, so I think you are mistaken on that one.

However this will be addressed once the syntax highlighting is informed by the AST via the LSP. I'm not doing any modifications to the current textmate grammar as it's a nightmare to work with.

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

No branches or pull requests

2 participants