-
-
Notifications
You must be signed in to change notification settings - Fork 219
update textmate grammar #837
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Hugo Locurcio <[email protected]>
Co-authored-by: Hugo Locurcio <[email protected]>
|
What's the point of the second change? I'm pretty sure variable declarations are already covered. |
Variable declaration is supported but the entire declaration is in scope, so for example this entire line is the variable declaration: var my_variable: String = "test string"What I wanted was a textmate scope just for the variable field name so just |
|
@DaelonSuzuka in that example it works however every time any variable comes up in the Screen.Recording.2025-04-01.174718.mp4 |
|
Here's the difference with my added scope. Screen.Recording.2025-04-01.175750.mp4 |

1. Added export_tool_button Annotation Support
I've added the export_tool_button keyword to the annotation term match list in the grammar file. That way the syntax highlighter properly recognizes and styles this annotation in VScode.
2. Added Variable Declaration Name Grammar Support
I've implemented grammar support for variable field name declarations with this pattern:
Also wanted to add grammar support for variable field name declarations like this:
This would: