Browse Source

* tscannerfile.readoptionalstate can handle also switches enclosed in (* ... *) comments

git-svn-id: trunk@33522 -
florian 9 years ago
parent
commit
e566fe1938
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/scanner.pas

+ 2 - 2
compiler/scanner.pas

@@ -4231,7 +4231,7 @@ type
         if c=' ' then
         if c=' ' then
          begin
          begin
            current_scanner.skipspace;
            current_scanner.skipspace;
-           if c='}' then
+           if c in ['*','}'] then
              state:=fallback
              state:=fallback
            else
            else
              begin
              begin
@@ -4244,7 +4244,7 @@ type
              end;
              end;
          end
          end
         else
         else
-          if c='}' then
+          if c in ['*','}'] then
             state:=fallback
             state:=fallback
           else
           else
             state:=c;
             state:=c;