From 5fa50ecc210ae9a93e7232ab507c5d12413c404e Mon Sep 17 00:00:00 2001 From: nreed Date: Wed, 14 Jul 2021 12:53:29 -0400 Subject: [PATCH] fix rust char literal highlighting #2481 --- src/rust/rust.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/rust.ts b/src/rust/rust.ts index 9640c627..ea55d6e0 100644 --- a/src/rust/rust.ts +++ b/src/rust/rust.ts @@ -290,7 +290,7 @@ export const language = { // Lifetime annotations [/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, 'identifier'], // Byte literal - [/'\S'/, 'string.byteliteral'], + [/'(\S|@escapes)'/, 'string.byteliteral'], // Strings [/"/, { token: 'string.quote', bracket: '@open', next: '@string' }], { include: '@numbers' },