Skip to content

Commit

Permalink
#13 more spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 29, 2023
1 parent 97bc712 commit 89b82fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions naive-ebnf.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,11 @@
\NewDocumentEnvironment{ebnf}{O{4em}+b}
{\tl_set:Nn\l__ebnf_tmp_tl{#2}}
{%
\regex_replace_all:nnN { \{(.+?)\} }%
\regex_replace_all:nnN { \{\ (.+?)\ \} }%
{\c{ebnf@repetition}{\1}} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { \((.+?)\) }%
\regex_replace_all:nnN { \(\ (.+?)\ \) }%
{\c{ebnf@grouping}{\1}} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { \[(.+?)\] }%
\regex_replace_all:nnN { \[\ (.+?)\ \] }%
{\c{ebnf@optional}{\1}} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { (<[^>]+?>\ :=) }%
{\c{makebox}[#1][r]{\1}} \l__ebnf_tmp_tl%
Expand All @@ -333,8 +333,8 @@
\regex_replace_all:nnN { '(.+?)' }%
{\c{ebnf@sterminal}{\1}} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { \|(\|) }%
{\c{makebox}[#1][r]{ \1 }} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { \| }%
{\c{makebox}[#1][r]{ \ \1\ }} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { \ \|\ }%
{\c{ebnf@alternation}{}} \l__ebnf_tmp_tl%
\regex_replace_all:nnN { := }%
{\c{ebnf@to}{}} \l__ebnf_tmp_tl%
Expand Down

0 comments on commit 89b82fc

Please sign in to comment.