Closed Jaebaek-Lee closed 6 months ago
Changes to minified artifacts in /build
, after gzip compression.
Total change +4 B
Please also provide a test case of union
used in context (outside of defining a union)... see tests/markup
, etc.
As I commented in the issue https://github.com/highlightjs/highlight.js/issues/3948, union
is not commonly used except when defining unions, so I didn't write a separate test case for it.
Of course, It can be used outside of defining a union, such as let r#union
, but that's not relevant to this issue, as it's a case of the regex not recognizing union as a keyword.
union is not commonly used except when defining unions, so I didn't write a separate test case for it.
Can you provide at least one sample usage outside of a union declaration other than r#union
? The keywords list is not necessarily intended to be exhaustive if the keywords already have their own separate rules.
Changes to minified artifacts in /build
, after gzip compression.
Total change +5 B
Adding union to be recognized as a keyword in Rust.
https://github.com/highlightjs/highlight.js/issues/3948
Changes
Added the union keyword to the KEYWORDS array in rust.js.![image](https://github.com/highlightjs/highlight.js/assets/103738589/55095b9c-646d-4dfc-b7cc-b2bbea715a80)
Checklist
CHANGES.md