Skip to content

Update lexer#14

Open
HelioGuilherme66 wants to merge 7 commits into
robotframework:masterfrom
HelioGuilherme66:update_lexer
Open

Update lexer#14
HelioGuilherme66 wants to merge 7 commits into
robotframework:masterfrom
HelioGuilherme66:update_lexer

Conversation

@HelioGuilherme66
Copy link
Copy Markdown
Member

@HelioGuilherme66 HelioGuilherme66 commented May 26, 2026

This PR updates the code to be compatible with latest Pygments, 2.20.0.
Adds *** Comments *** sections.
Adds the Token.Name.Function.Magic to all Control Markers (ADD, IF, IN, FOR, WHILE, ....). This color is the same as Keyword in all the default styles provided by Pygments, but this way we have the option to modify.

One small inconsistency, is the color for some conditions in for example WHILE, that are colored as Keyword when expression follows a variable. You can see the Unit Test, TestControlMarkers.test_while_continue that is designed to pass with this "feature" ;) .

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.

1 participant