Browse Source

+ escaping support from Ido Kaner

git-svn-id: trunk@223 -
florian 20 năm trước cách đây
mục cha
commit
9d9d0d7b33
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      packages/base/regexpr/regexpr.pp

+ 5 - 3
packages/base/regexpr/regexpr.pp

@@ -181,9 +181,11 @@ unit regexpr;
                               readchars:=cs_nonwordchars;
                            end;
                          else
-                           begin
-                              error:=true;
-                              exit;
+                           begin //Some basic escaping...
+                              readchars := [currentpos^];
+                              inc (currentpos);
+                              {error:=true;
+                              exit;}
                            end;
                      end;
                   end;