Explorar o código

fix rust char literal highlighting #2481

nreed %!s(int64=4) %!d(string=hai) anos
pai
achega
5fa50ecc21
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/rust/rust.ts

+ 1 - 1
src/rust/rust.ts

@@ -290,7 +290,7 @@ export const language = <languages.IMonarchLanguage>{
 			// 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' },