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: Added nagative look-ahead keywords for function invocations in the Rust Language #3883

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Conversation

omalk98
Copy link
Contributor

@omalk98 omalk98 commented Oct 9, 2023

Rust language

Resolves #3881

Changes

Updated Rust function invocation regex handler to address keywords that can be used with parentheses.

image

Negative look-ahead addresses the following keywords:

  • if
  • else if
  • for
  • while
  • match

Before:
image

After:
image

Checklist

  • Added markup tests
  • Updated the changelog at CHANGES.md

added markup tests for Rust

updated CHANGES.md
@omalk98 omalk98 changed the title Added nagative look-ahead keywords for function invocations in the Rust Language Fix: Added nagative look-ahead keywords for function invocations in the Rust Language Oct 9, 2023
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change +34 B

View Changes
file base pr diff
es/languages/rust.min.js 1.41 KB 1.43 KB +16 B
highlight.min.js 8.16 KB 8.16 KB +1 B
languages/rust.min.js 1.42 KB 1.44 KB +17 B

@joshgoebel joshgoebel merged commit 1a531f5 into highlightjs:main Oct 9, 2023
15 checks passed
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.

(Rust) Incorrect highlighting of statements
2 participants