Explorar o código

fix c++ comment continuation highlighting #2497

nreed %!s(int64=4) %!d(string=hai) anos
pai
achega
7b96ed2fbd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/cpp/cpp.ts

+ 2 - 0
src/cpp/cpp.ts

@@ -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']