-
Notifications
You must be signed in to change notification settings - Fork 54
Fix while with parentheses colorization
#611
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?
Fix while with parentheses colorization
#611
Conversation
| } | ||
| } | ||
| }, | ||
| "if_with_paren": { |
There was a problem hiding this comment.
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
|
The fix I have generated appears to fix the issue for the given colours. Please see below. @TwitchBronBron @chrisdp @tomek-r
|
@TwitchBronBron I will take a look again thanks |
|
@philanderson888 How can I test the branch in my VSC? |
|
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
... so at least we know the starting point ... before any code is pushed .... @TwitchBronBron just for info. |
|
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
... 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. |
c9b1018 to
c9d9846
Compare
while with parentheses colorization




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