Skip to content

Commit

Permalink
#18 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 14, 2023
1 parent afc8edb commit bb0bf77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions naive-ebnf.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@

% \DescribeMacro{\EbnfRegex}
% A regular expression is possible too:
% \docshotOptions{firstline=6,lastline=11}
% \docshotOptions{firstline=6,lastline=12}
% \begin{docshot}
% \documentclass{article}
% \pagestyle{empty}
Expand All @@ -197,6 +197,7 @@
% <bool> := "TRUE" | "FALSE" \\
% <integer> := /(+\char`\|-)?[0-9]+/ \\
% <byte> := /[0-9a-f]\char`\{2\char`\}/ \\
% <number> := /[1-9]+/ /[0-9]+/
% \end{ebnf}
% \end{document}
% \end{docshot}
Expand Down Expand Up @@ -406,7 +407,8 @@
\regex_replace_all:nnN
{ ([^\s])\|([^\s]) } {\1\\textbar{}\2} \ebnf_tmp%
%
\regex_replace_all:nnN { \s/(.+?)/\s }%
\regex_replace_all:nnN
{ /(.+?)/ }%
{\c{ebnf@regexp}{\1}} \ebnf_tmp%
\cs_new:Npn\ebnf_curled{%
\regex_replace_all:nnNT
Expand Down

0 comments on commit bb0bf77

Please sign in to comment.