From 7b96ed2fbd0479eca5d56eeba208ac2fadb85360 Mon Sep 17 00:00:00 2001 From: nreed Date: Sat, 26 Jun 2021 11:33:33 -0400 Subject: [PATCH] fix c++ comment continuation highlighting #2497 --- src/cpp/cpp.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpp/cpp.ts b/src/cpp/cpp.ts index 525b2551..6402bbd9 100644 --- a/src/cpp/cpp.ts +++ b/src/cpp/cpp.ts @@ -347,10 +347,12 @@ export const language = { [/[ \t\r\n]+/, ''], [/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'], [/\/\*/, 'comment', '@comment'], + [/\/\/.*\\$/, 'comment', '@comment'], [/\/\/.*$/, 'comment'] ], comment: [ + [/.*[^\\]$/, 'comment', '@pop'], [/[^\/*]+/, 'comment'], [/\*\//, 'comment', '@pop'], [/[\/*]/, 'comment']