From f914cb02480fc78c4641eb0f48fd0c794caec62f Mon Sep 17 00:00:00 2001 From: Justin Greywolf Date: Fri, 7 Aug 2020 12:08:34 -0700 Subject: [PATCH] 1594-Comment in class diagrams not working Slight modification to comment regex to ensure that all lines were being looked at, not just the first one --- src/diagrams/class/parser/classDiagram.jison | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagrams/class/parser/classDiagram.jison b/src/diagrams/class/parser/classDiagram.jison index 164562ebc..b3affe07a 100644 --- a/src/diagrams/class/parser/classDiagram.jison +++ b/src/diagrams/class/parser/classDiagram.jison @@ -14,7 +14,7 @@ ":" { this.popState(); this.begin('arg_directive'); return ':'; } \}\%\% { this.popState(); this.popState(); return 'close_directive'; } ((?:(?!\}\%\%).|\n)*) return 'arg_directive'; -\%\%(?!\{)*[^\n]*(\r?\n)+ /* skip comments */ +\%\%(?!\{)*[^\n]*(\r?\n?)+ /* skip comments */ \%\%[^\n]*(\r?\n)* /* skip comments */ (\r?\n)+ return 'NEWLINE'; \s+ /* skip whitespace */