Skip to content
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

Fix highlight of functions in CPP lexer #1928

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

tancnle
Copy link
Collaborator

@tancnle tancnle commented Feb 6, 2023

This fixes a bug where closing bracket does not pops out of the function state and causes subsequent functions not to be highlighted correctly. This change ensures closing bracket in statements mixin is detecting the function state.

Before After
before after

Closes #1927

This fixes a bug where closing bracket does not pops out of the function
state and causes subsequent functions not to be highlighted correctly.
This change ensures closing bracket in statements mixin is detecting
function state.
@tancnle tancnle merged commit 9e6e478 into rouge-ruby:master Feb 7, 2023
@tancnle tancnle deleted the fix.function-state-cpp branch February 7, 2023 22:22
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.

Cpp lexer does not highlight function definitions or declarations after the first definition
1 participant