Skip to content

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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants