mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
fix rust char literal highlighting #2481
This commit is contained in:
parent
075be30f2c
commit
5fa50ecc21
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue