mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
fix c++ comment continuation highlighting #2497
This commit is contained in:
parent
bb5255962a
commit
7b96ed2fbd
1 changed files with 2 additions and 0 deletions
|
|
@ -347,10 +347,12 @@ export const language = <languages.IMonarchLanguage>{
|
|||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*\\$/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment']
|
||||
],
|
||||
|
||||
comment: [
|
||||
[/.*[^\\]$/, 'comment', '@pop'],
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue