Skip to content

Commit

Permalink
Revert "tikz: handle \relax and frozen \relax on path #966"
Browse files Browse the repository at this point in the history
This reverts commit 79e613a.
  • Loading branch information
hmenke committed Dec 27, 2020
1 parent 52b43e1 commit 502cfec
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2120,15 +2120,10 @@
\else%
\tikz@invoke@collected@onpath%
\fi%
\tikz@scan@@next@command
}%
\def\tikz@scan@@next@command{%
\afterassignment\tikz@handle\let\pgf@let@token=%
}

}%
\newcount\tikz@expandcount
\let\tikz@collected@onpath=\pgfutil@empty%
\edef\tikz@frozen@relax@token{\ifnum0=0\fi}

% Central dispatcher for commands
\def\tikz@handle{%
Expand Down Expand Up @@ -2229,7 +2224,7 @@
\ifx\pgf@let@token:%
\let\pgfutil@next=\tikz@colon@char%
\else%
\let\pgfutil@next=\tikz@handle@evenmore
\let\pgfutil@next=\tikz@expand%
\fi%
\fi%
\fi%
Expand All @@ -2245,26 +2240,10 @@
\fi%
\fi%
\fi%
\ifx\pgfutil@next\tikz@expand\else\tikz@expandcount=100\relax\fi%
\pgfutil@next%
}%

% Continued...
\def\tikz@handle@evenmore{%
% if \pgf@let@token is \relax or frozen \relax, skip it and
% scan from the next token
\ifx\pgf@let@token\relax
\let\pgfutil@next=\tikz@scan@@next@command
\else
\ifx\pgf@let@token\tikz@frozen@relax@token
\let\pgfutil@next=\tikz@scan@@next@command
\else
\let\pgfutil@next=\tikz@expand
\fi
\fi
\ifx\pgfutil@next\tikz@expand\else\tikz@expandcount=100\relax\fi
\pgfutil@next
}

\def\tikz@l@char{%
\pgfutil@ifnextchar e{\tikz@let@command}{%
\pgfutil@ifnextchar i{\tikz@lsystem}{%
Expand Down

0 comments on commit 502cfec

Please sign in to comment.