Skip to content

Conversation

@sethmaclean
Copy link
Collaborator

@sethmaclean sethmaclean commented Mar 4, 2025

This PR is linked to issue #397

It was discovered that the support-component-function classes were applying text-mate styles to functions that should not be receiving them. reserved function names already receive syntax highlighting following the regex colourization, by the semantic styling in bright-script. as a result, all references to the support component class objects have been removed from the tmLanguage.bs file.

Unit tests have been added to validate the highlighting of functions and variables named that match reserved function names in Roku.

Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

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

Thanks for this. Can you add some unit tests to verify this is working correctly (and ensure we don't break it again in the future)?

Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

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

Looks great! thanks for this.

@TwitchBronBron TwitchBronBron merged commit 5f43ddd into master Mar 24, 2025
5 checks passed
@TwitchBronBron TwitchBronBron deleted the bug-fix-syntax-highlighting-variables-and-params branch March 24, 2025 17:57
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.

3 participants