Skip to content

Commit 456990a

Browse files
eernstgmit-mit
authored andcommitted
Fix dart.sty, update version (#242)
* Updated dart.sty * Updated spec version to 2.2
1 parent 7dc3b79 commit 456990a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

specification/dart.sty

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,27 +107,28 @@
107107
\newcommand{\Case}[1]{\textbf{Case }$\langle\hspace{0.1em}${#1}$\hspace{0.1em}\rangle$\textbf{.}}
108108
\newcommand{\EndCase}{\mbox{}\hfill$\scriptscriptstyle\Box$\xspace}
109109

110-
\newenvironment{dartCode}[1][!ht] {
110+
\newenvironment{dartCode}[1][!ht] {%
111111
\def\@programcr{\@addfield\strut}%
112112
\let\\=\@programcr%
113113
\relax\@vobeyspaces\obeylines%
114114
\ttfamily\color{commentaryColor}%
115-
\vspace{1em}
115+
\vspace{1em}%
116116
}{\normalcolor\vspace{1em}}
117117

118-
\newenvironment{normativeDartCode}[1][!ht] {
118+
\newenvironment{normativeDartCode}[1][!ht] {%
119119
\def\@programcr{\@addfield\strut}%
120120
\let\\=\@programcr%
121121
\relax\@vobeyspaces\obeylines%
122122
\ttfamily\color{normativeColor}%
123-
\vspace{1em}
123+
\vspace{1em}%
124124
}{\normalcolor\vspace{1em}}
125125

126126
% Used for comments in a code context.
127127
\def\comment#1{\textsf{#1}}
128128

129-
% A commonly used name for an identifier
129+
% A commonly used metavariable for an identifier, operator.
130130
\newcommand{\id}{\metavar{id}}
131+
\newcommand{\op}{\metavar{op}}
131132

132133
% Used for defining occurrence of phrase, with customized index entry.
133134
\newcommand{\IndexCustom}[2]{%
@@ -142,7 +143,7 @@
142143
\newcommand{\Index}[1]{\IndexCustom{#1}{#1}}
143144

144145
% Same appearance, but not adding an entry to the index.
145-
\newcommand{\NoIndex}[1]{
146+
\newcommand{\NoIndex}[1]{%
146147
\leavevmode\marginpar{\ensuremath{\diamond}}\emph{#1}}
147148

148149
% Used to specify comma separated lists of similar symbols.

specification/dartLangSpec.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
\makeindex
1616
\title{Dart Programming Language Specification\\
1717
{5th edition draft}\\
18-
{\large Version 2.2.0-dev}}
18+
{\large Version 2.2}}
1919
\author{}
2020

2121
% For information about Location Markers (and in particular the

0 commit comments

Comments
 (0)