fix c++ comment continuation highlighting #2497

pull/2748/head
nreed 4 years ago
parent bb5255962a
commit 7b96ed2fbd

@ -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…
Cancel
Save