Skip to content

Commit

Permalink
#13 textbar
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 29, 2023
1 parent cdd4d0c commit 395c806
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions naive-ebnf.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@
% the left hand side than usual: \par
% \begin{ebnf}[1.5in]
% <VeryLongVariable> := <X> | <Y> \\
% <X> := "X" 'EOL' "'" \\
% <Y> := "Y" ">" "<" \\
% <X> := "X" 'EOL' "'" "|" \\
% <Y> := "Y" ">" "<" "]" "[" \\
% \end{ebnf}
% \end{document}
% \end{docshot}
Expand Down Expand Up @@ -320,6 +320,7 @@
\regex_replace_all:nnN { ([^\ ])< } {\1\\textless{}} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { >([^\ ]) } {\\textgreater{}\1} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { ([^\ ])'([^\ ]) } {\1\\textquotesingle{}\2} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { ([^\ ])\|([^\ ]) } {\1\\textbar{}\2} \l__ebnf_tmp_tl%
%
\regex_replace_all:nnN { \{\ (.+?)\ \} }%
{\c{ebnf@repetition}{\1}} \l__ebnf_tmp_tl%
Expand Down

0 comments on commit 395c806

Please sign in to comment.