Skip to content

Commit

Permalink
show spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 25, 2024
1 parent 54c21e1 commit f2d6104
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions paper/sections/syntax.tex
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,15 @@ \subsection{Indentation}
(for example, there has to be exactly one space after the closing square bracket at the
second line and the \ff{>} symbol, while two spaces will break the syntax):

\begin{ffcode*}{showspaces=true}
{\lstset{showspaces=true}\begin{ffcode}
# This is a vector in 2D space |$\label{ln:comment}$|
[dx dy] > vector |$\label{ln:vector}$|
sqrt. > length |$\label{ln:length}$|
plus.
dx.times dx
dy.timex dy |$\label{ln:length-end}$| |$\label{ln:vector-end}$|
\end{ffcode*}
\end{ffcode}
}

The code at \lref{comment} is a \emph{comment}.
Two \emph{free attributes} \ff{dx} and \ff{dy}
Expand Down

0 comments on commit f2d6104

Please sign in to comment.