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 elseif and else meta blocks #82

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

watermarkhu
Copy link
Contributor

@watermarkhu watermarkhu commented Jun 16, 2024

The meta.elseif.matlab and meta.else.matlab scopes only detected for the elseif and else keywords. This is due to both scopes using the match rule, while it should be using begin/end instead. The patterns in the match rule are never used as a match rule does not support patterns.

Also fixes #78 and while declarations are recognized.

Additionally, better support for line continuations including comments in multiline declarations.

@watermarkhu watermarkhu mentioned this pull request Jun 16, 2024
@dklilley dklilley self-assigned this Jun 19, 2024
@dklilley dklilley added the CLA signed Indicates that the requester has signed the Contributor License Agreement label Jun 19, 2024
@dklilley dklilley merged commit 4734423 into mathworks:master Jun 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed Indicates that the requester has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntax Highlighting - While loop EOL comment highlighting situationally incorrect.
2 participants