Open
Conversation
Calinou
reviewed
Apr 1, 2025
Calinou
reviewed
Apr 1, 2025
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Collaborator
|
What's the point of the second change? I'm pretty sure variable declarations are already covered. |
Author
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 |
Collaborator
Author
|
@DaelonSuzuka in that example it works however every time any variable comes up in the Screen.Recording.2025-04-01.174718.mp4 |
Author
|
Here's the difference with my added scope. Screen.Recording.2025-04-01.175750.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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: