diff options
author | Erich Eckner <git@eckner.net> | 2014-09-24 13:56:34 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2014-09-24 13:56:34 +0200 |
commit | 99b99f8ca1967135221a5d4f24fbae073530e0ff (patch) | |
tree | f792373e7626a4c446e3529d0f53869c7eafe2a3 /Make.lpr | |
parent | 4bec7ee705b23b89a934b544b96457ed985b09a1 (diff) | |
download | Make-99b99f8ca1967135221a5d4f24fbae073530e0ff.tar.xz |
escapen von ";" mittels ";;" eingebaut
Diffstat (limited to 'Make.lpr')
-rw-r--r-- | Make.lpr | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -213,7 +213,10 @@ begin '}': dec(Ebene); end; until (result>=length(worin)) or ((copy(worin,result,length(was))=was) and (Ebene=0)); - if ((result=1) or (worin[result-1]<>'\')) and (copy(worin,result,length(was))=was) then exit; + if + ((result=1) or ((worin[result-1]<>'\') and (worin[result-1]<>was))) and + ((result=length(worin)) or (worin[result+1]<>was)) and + (copy(worin,result,length(was))=was) then exit; end; result:=0; end; @@ -283,6 +286,8 @@ begin delete(s,1,1); while unescapedpos(';',s)>0 do s:=copy(s,1,unescapedpos(';',s)-1)+' &&'+copy(s,unescapedpos(';',s)+1,length(s)-unescapedpos(';',s)); + while pos(';;',s)>0 do + delete(s,pos(';;',s),1); NA.Befehle.Add(s); end; if fin then begin |