Browse Source

* undid my previous commit, because it breaks some code

peter 25 years ago
parent
commit
289e5d6567
1 changed files with 22 additions and 18 deletions
  1. 22 18
      compiler/scanner.pas

+ 22 - 18
compiler/scanner.pas

@@ -973,23 +973,24 @@ implementation
                   found:=2;
                end;
              '''' :
-               begin
-                 repeat
-                   readchar;
-                   case c of
-                     #26 :
-                       end_of_file;
-                     newline :
-                       break;
-                     '''' :
-                       begin
-                         readchar;
-                         if c<>'''' then
-                          break;
-                       end;
-                   end;
-                 until false;
-               end;
+               if not(m_nested_comment in aktmodeswitches) then
+                begin
+                  repeat
+                    readchar;
+                    case c of
+                      #26 :
+                        end_of_file;
+                      newline :
+                        break;
+                      '''' :
+                        begin
+                          readchar;
+                          if c<>'''' then
+                           break;
+                        end;
+                    end;
+                  until false;
+                end;
              '(' :
                begin
                  readchar;
@@ -1833,7 +1834,10 @@ exit_label:
 end.
 {
   $Log$
-  Revision 1.115  2000-07-08 16:22:30  peter
+  Revision 1.116  2000-07-08 18:03:11  peter
+    * undid my previous commit, because it breaks some code
+
+  Revision 1.115  2000/07/08 16:22:30  peter
     * also support string parsing in skipuntildirective for fpc modes
 
   Revision 1.114  2000/06/30 20:23:38  peter