diff --git a/src/rust/rust.ts b/src/rust/rust.ts index 90adf3b7..9640c627 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'/, 'string.byteliteral'], // Strings [/"/, { token: 'string.quote', bracket: '@open', next: '@string' }], { include: '@numbers' },