diff --git a/chapters/lexicalstructure.tex b/chapters/lexicalstructure.tex index 7c25bbd30..8a3e91a6c 100644 --- a/chapters/lexicalstructure.tex +++ b/chapters/lexicalstructure.tex @@ -35,8 +35,8 @@ \section{Comments}\label{comments} The comment syntax is identical to that of C++. \end{nonnormative} -Delimited Modelica comments do not nest, i.e., /* */ cannot be embedded within /* -*/. The following is \emph{invalid}: +Delimited Modelica comments do not nest, i.e., \lstinline!/* */! cannot be embedded within \lstinline!/* $\ldots$ */!. +The following is \emph{invalid}: \begin{lstlisting}[language=modelica] /* Invalid nesting of comments, the comment ends just before 'end' model Interesting