summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-07-14 21:05:37 +0000
committerKarl Berry <karl@freefriends.org>2023-07-14 21:05:37 +0000
commit0c96e0274d668f42cffaf17536417a5af6a3ba48 (patch)
tree154f4970d0d4aed4b547e76c665a018170dcb771 /Master/texmf-dist/source
parent388fd5ba705617c4ea1ab64b1edd2da78f8285df (diff)
naive-ebnf (14jul23)
git-svn-id: svn://tug.org/texlive/trunk@67631 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx b/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx
index 0fee1be6a5f..804e2121b97 100644
--- a/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx
+++ b/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{naive-ebnf}
%<*package>
-[2023-07-13 0.0.12 EBNF in Plain Text]
+[2023-07-14 0.0.13 EBNF in Plain Text]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -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}
@@ -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}
@@ -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