mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 09:20:10 +01:00
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:
parent
c92a363985
commit
92f21bfb5b
3 changed files with 11 additions and 23 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue