fix rust char literal highlighting #2481

pull/2748/head
nreed 4 years ago
parent 075be30f2c
commit 5fa50ecc21

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

Loading…
Cancel
Save