Fix bug with highlighting of C++ raw string literals (#4436)

* Fix bug with highlighting of C++ raw string literals

* Update to today's monaco-editor-core

* Continue generating `string.raw.end` tokens

---------

Co-authored-by: Alex Dima <alexdima@microsoft.com>
This commit is contained in:
Jeremy Rifkin 2024-03-20 16:09:44 -05:00 committed by GitHub
parent c92a363985
commit 92f21bfb5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 23 deletions

View file

@ -378,21 +378,9 @@ export const language = <languages.IMonarchLanguage>{
],
raw: [
[
/(.*)(\))(?:([^ ()\\\t"]*))(\")/,
{
cases: {
'$3==$S2': [
'string.raw',
'string.raw.end',
'string.raw.end',
{ token: 'string.raw.end', next: '@pop' }
],
'@default': ['string.raw', 'string.raw', 'string.raw', 'string.raw']
}
}
],
[/.*/, 'string.raw']
[/[^)]+/, 'string.raw'],
[/\)$S2\"/, { token: 'string.raw.end', next: '@pop' }],
[/\)/, 'string.raw']
],
annotation: [