fix c++ comment continuation highlighting #2497

This commit is contained in:
nreed 2021-06-26 11:33:33 -04:00
parent bb5255962a
commit 7b96ed2fbd

View file

@ -347,10 +347,12 @@ export const language = <languages.IMonarchLanguage>{
[/[ \t\r\n]+/, ''], [/[ \t\r\n]+/, ''],
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'], [/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
[/\/\*/, 'comment', '@comment'], [/\/\*/, 'comment', '@comment'],
[/\/\/.*\\$/, 'comment', '@comment'],
[/\/\/.*$/, 'comment'] [/\/\/.*$/, 'comment']
], ],
comment: [ comment: [
[/.*[^\\]$/, 'comment', '@pop'],
[/[^\/*]+/, 'comment'], [/[^\/*]+/, 'comment'],
[/\*\//, 'comment', '@pop'], [/\*\//, 'comment', '@pop'],
[/[\/*]/, 'comment'] [/[\/*]/, 'comment']