From 0fac1c621a8ae8105495e85a83aee7878bac2123 Mon Sep 17 00:00:00 2001 From: Lee Jae-Baek Date: Tue, 2 Jan 2024 08:29:38 +0900 Subject: [PATCH] enh(rust) add `union` to kEywoRds (#3949) --- CHANGES.md | 1 + src/languages/rust.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index d0ea278f83..77b9d59a18 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,7 @@ Core Grammars: - fix(typescript): params types [Mohamed Ali][] - fix(rust) fix escaped double quotes in string [Mohamed Ali][] - fix(rust) fix for r# raw identifier not being highlighted correctly. [JaeBaek Lee][] +- enh(rust) Adding union to be recognized as a keyword in Rust. [JaeBaek Lee][] - fix(yaml) fix for yaml with keys having brackets highlighted incorrectly [Aneesh Kulkarni][] - fix(bash) fix # within token being detected as the start of a comment [Felix Uhl][] - fix(python) fix `or` conflicts with string highlighting [Mohamed Ali][] diff --git a/src/languages/rust.js b/src/languages/rust.js index f1920b0923..d0e36fa6bf 100644 --- a/src/languages/rust.js +++ b/src/languages/rust.js @@ -71,6 +71,7 @@ export default function(hljs) { "try", "type", "typeof", + "union", "unsafe", "unsized", "use",