summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-08-20 21:36:38 (GMT)
committerFred Drake <fdrake@acm.org>2001-08-20 21:36:38 (GMT)
commit16bb41934c1258282170e7773e36fe7ffad3cfdc (patch)
tree3224ff91de4a675162f9f04a49c3567d15594034 /Doc/texinputs
parent2a274a7e41d063748f17c8b037df9a3715a32bf2 (diff)
downloadcpython-16bb41934c1258282170e7773e36fe7ffad3cfdc.zip
cpython-16bb41934c1258282170e7773e36fe7ffad3cfdc.tar.gz
cpython-16bb41934c1258282170e7773e36fe7ffad3cfdc.tar.bz2
New \grammartoken markup, similar to \token but allowed everywhere.
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/python.sty2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 6b892cb..f25041b 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -867,11 +867,13 @@
\newcommand{\citetitle}[2][URL]{\emph{#2}}
+\newcommand{\grammartoken}[1]{\texttt{#1}}
\newenvironment{productionlist}[1][\py@badkey]{
\def\optional##1{{\Large[}##1{\Large]}}
\def\production##1##2{\code{##1}&::=&\code{##2}\\}
\def\orgroup##1{{\def\or{\textbar\ }##1}}
\def\token##1{##1}
+ \let\grammartoken=\token
\begin{center}
\begin{tabular}{lcl}
}{%