From fd82e6baadcb162103a04b8e125b79c90e48130f Mon Sep 17 00:00:00 2001 From: LadyRick Date: Thu, 19 Aug 2021 17:34:22 +0800 Subject: [PATCH 1/2] fix(cpp): fix cpp language integer suffix the old config `/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/` also match some wrong suffix: `lll`, `llLL`, `LLl` and so on. --- src/cpp/cpp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/cpp.ts b/src/cpp/cpp.ts index 77beaa09..7d723ff7 100644 --- a/src/cpp/cpp.ts +++ b/src/cpp/cpp.ts @@ -273,7 +273,7 @@ export const language = { // we include these common regular expressions symbols: /[=> Date: Thu, 19 Aug 2021 21:21:23 +0800 Subject: [PATCH 2/2] fix(cpp): fix integer suffix regex (CI passed) --- src/cpp/cpp.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpp/cpp.ts b/src/cpp/cpp.ts index 7d723ff7..6b4eef50 100644 --- a/src/cpp/cpp.ts +++ b/src/cpp/cpp.ts @@ -273,7 +273,7 @@ export const language = { // we include these common regular expressions symbols: /[=>{ [/\*\//, 'comment', '@pop'], [/[\/*]/, 'comment'] ], - + //For use with continuous line comments linecomment: [ [/.*[^\\]$/, 'comment', '@pop'], [/[^]+/, 'comment'] ], - + //Identical copy of comment above, except for the addition of .doc doccomment: [ [/[^\/*]+/, 'comment.doc'],