Skip to content

Conversation

@philanderson888
Copy link
Contributor

@philanderson888 philanderson888 commented Jan 30, 2025

as per issue 197 describes, various key words are not having the correct colour applied.

}
}
},
"if_with_paren": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. At first glance, I think this is not the correct approach.

We don't have a lot of unit tests around the syntaxes, so I don't have full confidence as to why these deleted items are still needed, but I'm thinking a better approach would be to add the correct colorizing for those keywords rather than delete whatever else is colliding with them.

Also, if you do end up deleting these, you'll need to remove their references from the list above too, (look for #if_with_paren and #function_call

@philanderson888
Copy link
Contributor Author

The fix I have generated appears to fix the issue for the given colours.

Please see below.

@TwitchBronBron @chrisdp @tomek-r

Screenshot 2025-01-30 at 17 11 25

@philanderson888
Copy link
Contributor Author

Hmm. At first glance, I think this is not the correct approach.

We don't have a lot of unit tests around the syntaxes, so I don't have full confidence as to why these deleted items are still needed, but I'm thinking a better approach would be to add the correct colorizing for those keywords rather than delete whatever else is colliding with them.

Also, if you do end up deleting these, you'll need to remove their references from the list above too, (look for #if_with_paren and #function_call

@TwitchBronBron I will take a look again

thanks

@tomek-r
Copy link

tomek-r commented Jan 31, 2025

@philanderson888 How can I test the branch in my VSC?

@TwitchBronBron TwitchBronBron added the create-vsix PRs with this tag will trigger a vsix build on vscode-brightscript-language for every push label Jan 31, 2025
@philanderson888
Copy link
Contributor Author

when i revert all code just to see the test status on null change, I am getting one failure and the rest passing or skipped

Screenshot 2025-01-31 at 13 29 01 Screenshot 2025-01-31 at 13 29 47

... so at least we know the starting point ... before any code is pushed ....

@TwitchBronBron just for info.

@philanderson888
Copy link
Contributor Author

Thank you for your comments yesterday @TwitchBronBron - that supplied the information that I was missing

After adding this trigger line

                {
                    "include": "#while_with_paren"
                },

then yes the 'while' code is doing its job

so that all works now, and I reverted the existing code so that is all back 'as-it-was'

thanks

I have been through all the comments and pictures in the issue/pull request and assembled them together in one file - looks like all issues addresssed as part of this issue gathering over the years have now been cumulatively resolved.

Here is what I am seeing for example

Screenshot 2025-01-31 at 13 38 30

... so I have gone through all conversations, all images and attempted to recreate the named items/functions afresh in one file ... so all can be seen together ... all the colours appear to be working correctly now.

@TwitchBronBron @chrisdp @tomek-r

@TwitchBronBron TwitchBronBron force-pushed the master branch 6 times, most recently from c9b1018 to c9d9846 Compare June 4, 2025 16:16
@TwitchBronBron TwitchBronBron linked an issue Jun 5, 2025 that may be closed by this pull request
@TwitchBronBron TwitchBronBron changed the title issue 197 - incorrect colors used on key words Fix while with parentheses colorization Jun 5, 2025
@TwitchBronBron TwitchBronBron removed the create-vsix PRs with this tag will trigger a vsix build on vscode-brightscript-language for every push label Jun 5, 2025
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

Successfully merging this pull request may close these issues.

incorrect function syntax color

3 participants