Browse Source

* quick fix folding {$i %variablename%} to tkstring, mantis 16343

git-svn-id: trunk@15731 -
marco 15 years ago
parent
commit
b48130b39b
1 changed files with 9 additions and 1 deletions
  1. 9 1
      packages/fcl-passrc/src/pscanner.pp

+ 9 - 1
packages/fcl-passrc/src/pscanner.pp

@@ -1015,7 +1015,15 @@ begin
                 if FCurSourceFile is TFileLineReader then
                   FCurFilename := TFileLineReader(FCurSourceFile).Filename; // nicer error messages
                 FCurRow := 0;
-              end;
+              end
+             else
+              if Param[1]='%' then
+                begin
+                  fcurtokenstring:='{$i '+param+'}';
+                  fcurtoken:=tkstring;  
+                  result:=fcurtoken;
+                  exit; 
+                end;
             end else if Directive = 'DEFINE' then
             begin
               if not PPIsSkipping then