Skip to content

Commit

Permalink
manual: Remove space inserting from syntaxdef.hva
Browse files Browse the repository at this point in the history
  • Loading branch information
wikku committed Aug 29, 2021
1 parent 23c8433 commit 65f3089
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions manual/styles/syntaxdef.hva
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
%\stx@alias{name}{othername}
%will make reference to 'name' point to the definition of non-terminal
%'othername'
\newif\ifspace
\def\addspace{\ifspace\;\spacefalse\fi}
\ifhtml
\newcommand{\token}[1]{\texttt{\blue#1}}
\else
Expand Down Expand Up @@ -135,23 +133,23 @@
%%%Format non-terminal
\def\nt#1{\textit{\maroon#1}}
%%%Link for non-terminal and format
\def\nonterm#1{\addspace\nt{\@anchor{#1}}\spacetrue}
\def\brepet{\addspace\{}
\def\nonterm#1{\nt{\@anchor{#1}}}
\def\brepet{\{}
\def\erepet{\}}
\def\boption{\addspace[}
\def\boption{[}
\def\eoption{]}
\def\brepets{\addspace\{}
\def\brepets{\{}
\def\erepets{\}^+}
\def\bparen{\addspace(}
\def\bparen{(}
\def\eparen{)}
\def\orelse{\mid \spacefalse}
\def\is{ & ::= & \spacefalse }
\def\alt{ \\ & \mid & \spacefalse }
\def\sep{ \\ \\ \spacefalse }
\def\orelse{\mid}
\def\is{&::=&}
\def\alt{\\&\mid&}
\def\sep{\\\\}
\def\cutline{}
\def\emptystring{\epsilon}
\def\syntax{\@open{div}{class="syntax"}$$\begin{array}{>{\set@name}rcl}\spacefalse}
\def\syntax{\@open{div}{class="syntax"}$$\begin{array}{>{\set@name}rcl}}
\def\endsyntax{\end{array}$$\@close{div}}
\def\syntaxleft{\@open{div}{class="syntaxleft"}$\begin{array}{>{\set@name}rcl}\spacefalse}
\def\syntaxleft{\@open{div}{class="syntaxleft"}$\begin{array}{>{\set@name}rcl}}
\def\endsyntaxleft{\end{array}$\@close{div}}
\def\synt#1{$\spacefalse#1$}
\def\synt#1{$#1$}

0 comments on commit 65f3089

Please sign in to comment.