Closed Jaebaek-Lee closed 6 months ago
Changes to minified artifacts in /build
, after gzip compression.
Total change +35 B
When the identifier is referenced again, try appears as a reserved keyword again in r#try.
Ok, now we're talking about false positives, which is a different situation entirely. I'm not sure we should use the keyword engine to consume these (but not match, and hence not apply scoping)... can we add a few failing tests for this case and I'll take another look?
When the identifier is referenced again, try appears as a reserved keyword again in r#try.
Ok, now we're talking about false positives, which is a different situation entirely. I'm not sure we should use the keyword engine to consume these (but not match, and hence not apply scoping)... can we add a few failing tests for this case and I'll take another look?
Good! I'll create a new issue for the new problem and figure out how to fix it.
Please feel free to provide any additional feedback or suggestions for improvement in this PR. I'm open to making further corrections if needed.
Thanks so much!
https://github.com/highlightjs/highlight.js/issues/3924
Changes
In order to support raw identifiers in Rust, the regular expressions for
UNDERSCORE_IDENT_RE
andIDENT_RE
need to be modified to include the r# keyword. However, since modes.js is shared by other languages, we need to ensure that only rust supports the r# keyword.Original (modes.js)
Change (rust.js)
So, add the following code to rust.js to support the r# keyword only in rust.
Checklist
CHANGES.md