Browse Source

* triple-quoted string needs to be ended by triple-quoted string.

Michaël Van Canneyt 1 week ago
parent
commit
7fac24bfe5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/scanner.pas

+ 2 - 1
compiler/scanner.pas

@@ -5574,6 +5574,7 @@ type
       cstringpattern:=tmp;
       cstringpattern:=tmp;
     end;
     end;
 
 
+
     function tscannerfile.readstringconstant : boolean;
     function tscannerfile.readstringconstant : boolean;
 
 
     type
     type
@@ -5823,7 +5824,7 @@ type
                           end;
                           end;
                       end;
                       end;
                     '`' :
                     '`' :
-                      if in_multiline_string then
+                      if in_multiline_string and (style=qsBacktick) then
                         begin
                         begin
                           readchar;
                           readchar;
                           if c<>'`' then
                           if c<>'`' then