fix rust char literal highlighting #2481

This commit is contained in:
nreed 2021-07-14 12:53:29 -04:00
parent 075be30f2c
commit 5fa50ecc21

View file

@ -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' },