Simplify stringBody escape regex

This commit is contained in:
Jin Cao 2024-05-29 23:56:39 -04:00 committed by GitHub
parent d18f6db7ba
commit cea14f4dd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -534,7 +534,7 @@ export const language = <languages.IMonarchLanguage>{
stringBody: [ stringBody: [
[/'/, 'string', '@popall'], [/'/, 'string', '@popall'],
[/\\'|\\\\/, 'string.escape'], [/\\['\\]/, 'string.escape'],
[/./, 'string'] [/./, 'string']
], ],