From d020e482d68a7a0381d56e3a6342108c91a21435 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Wed, 25 Dec 2024 12:49:17 -0500 Subject: [PATCH] enh(rust) can also escape a singe quote --- src/languages/rust.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/rust.js b/src/languages/rust.js index a99b712ef2..13e7be19f2 100644 --- a/src/languages/rust.js +++ b/src/languages/rust.js @@ -213,7 +213,7 @@ export default function(hljs) { contains: [ { scope: "char.escape", - match: /\\(\w|x\w{2}|u\w{4}|U\w{8})/ + match: /\\('|\w|x\w{2}|u\w{4}|U\w{8})/ } ] }