Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: docs/language/dart.sty

Issue 2609413006: Performed some keyword related clean-ups. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | docs/language/dartLangSpec.tex » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 \def\keyword#1{\textbf{#1}} 1 \def\keyword#1{\textbf{#1}}
2 \def\builtinId#1{\textbf{#1}} 2 \def\builtinId#1{\textbf{#1}}
3 \def\comment#1{\textit{#1}} 3 \def\comment#1{\textit{#1}}
4 \def\capt#1{\rmfamily \caption{#1}} 4 \def\capt#1{\rmfamily \caption{#1}}
5 \newcommand{\cd}[1]{\textsf{#1}} 5 \newcommand{\cd}[1]{\textsf{#1}}
6 \def\lt{$<$} 6 \def\lt{\ensuremath{<}}
7 \def\gt{$>$} 7 \def\gt{\ensuremath{>}}
8 \def\<{$\langle$} 8 \def\<{\ensuremath{\langle}}
9 \def\>{$\rangle$} 9 \def\>{\ensuremath{\rangle}}
10 \def\metavar#1{\ensuremath{\mathit{#1}}} 10 \def\metavar#1{\ensuremath{\mathit{#1}}}
11
11 \def\ABSTRACT{\builtinId{abstract}} 12 \def\ABSTRACT{\builtinId{abstract}}
12 \def\AS{\builtinId{as}} 13 \def\AS{\builtinId{as}}
14 \def\DEFERRED{\builtinId{deferred}}
15 \def\DYNAMIC{\builtinId{dynamic}}
16 \def\EXPORT{\builtinId{export}}
17 \def\EXTERNAL{\builtinId{external}}
18 \def\FACTORY{\builtinId{factory}}
19 \def\GET{\builtinId{get}}
20 \def\IMPLEMENTS{\builtinId{implements}}
21 \def\IMPORT{\builtinId{import}}
22 \def\LIBRARY{\builtinId{library}}
23 \def\OPERATOR{\builtinId{operator}}
24 \def\PART{\builtinId{part}}
25 \def\SET{\builtinId{set}}
26 \def\STATIC{\builtinId{static}}
27 \def\TYPEDEF{\builtinId{typedef}}
28
13 \def\ASSERT{\keyword{assert}} 29 \def\ASSERT{\keyword{assert}}
14 \def\ASYNC{\keyword{async}} 30 \def\ASYNC{\keyword{async}}
15 \def\AWAIT{\keyword{await}} 31 \def\AWAIT{\keyword{await}}
16 \def\BOOLEAN{\keyword{boolean}}
17 \def\BREAK{\keyword{break}} 32 \def\BREAK{\keyword{break}}
33 \def\CALL{\keyword{call}}
18 \def\CASE{\keyword{case}} 34 \def\CASE{\keyword{case}}
35 \def\CATCH{\keyword{catch}}
19 \def\CLASS{\keyword{class}} 36 \def\CLASS{\keyword{class}}
20 \def\CALL{\keyword{call}}
21 \def\CATCH{\keyword{catch}}
22 \def\CONST{\keyword{const}} 37 \def\CONST{\keyword{const}}
23 \def\CONTINUE{\keyword{continue}} 38 \def\CONTINUE{\keyword{continue}}
24 \def\DEFAULT{\keyword{default}} 39 \def\DEFAULT{\keyword{default}}
25 \def\DEFERRED{\keyword{deferred}}
26 \def\DYNAMIC{\builtinId{dynamic}}
27 \def\DO{\keyword{do}} 40 \def\DO{\keyword{do}}
28 \def\ELSE{\keyword{else}} 41 \def\ELSE{\keyword{else}}
29 \def\ENUM{\keyword{enum}} 42 \def\ENUM{\keyword{enum}}
30 \def\EQUALS{\keyword{equals}}
31 \def\EXPORT{\builtinId{export}}
32 \def\EXTENDS{\keyword{extends}} 43 \def\EXTENDS{\keyword{extends}}
33 \def\EXTERNAL{\builtinId{external}}
34 \def\FACTORY{\builtinId{factory}}
35 \def\FALSE{\keyword{false}} 44 \def\FALSE{\keyword{false}}
36 \def\FINAL{\keyword{final}} 45 \def\FINAL{\keyword{final}}
37 \def\FINALLY{\keyword{finally}} 46 \def\FINALLY{\keyword{finally}}
38 \def\FOR{\keyword{for}} 47 \def\FOR{\keyword{for}}
39 \def\GET{\builtinId{get}}
40 \def\HIDE{\keyword{hide}} 48 \def\HIDE{\keyword{hide}}
41 \def\IF{\keyword{if}} 49 \def\IF{\keyword{if}}
42 \def\IMPLEMENTS{\builtinId{implements}}
43 \def\IMPORT{\builtinId{import}}
44 \def\IN{\keyword{in}} 50 \def\IN{\keyword{in}}
45 \def\INT{\keyword{int}}
46 \def\INTERFACE{\keyword{interface}}
47 \def\IS{\keyword{is}} 51 \def\IS{\keyword{is}}
48 \def\LIBRARY{\builtinId{library}}
49 \def\NATIVE{\keyword{native}}
50 \def\NEGATE{\keyword{negate}}
51 \def\NEW{\keyword{new}} 52 \def\NEW{\keyword{new}}
52 \def\NULL{\keyword{null}} 53 \def\NULL{\keyword{null}}
54 \def\OF{\keyword{of}}
53 \def\ON{\keyword{on}} 55 \def\ON{\keyword{on}}
54 \def\OF{\keyword{of}}
55 \def\OPERATOR{\builtinId{operator}}
56 \def\PART{\builtinId{part}}
57 \def\PRIVATE{\keyword{private}}
58 \def\RETHROW{\keyword{rethrow}} 56 \def\RETHROW{\keyword{rethrow}}
59 \def\RETURN{\keyword{return}} 57 \def\RETURN{\keyword{return}}
60 \def\SET{\builtinId{set}}
61 \def\SHOW{\keyword{show}} 58 \def\SHOW{\keyword{show}}
62 \def\SOURCE{\keyword{source}}
63 \def\STATIC{\builtinId{static}}
64 \def\SUPER{\keyword{super}} 59 \def\SUPER{\keyword{super}}
65 \def\SWITCH{\keyword{switch}} 60 \def\SWITCH{\keyword{switch}}
66 \def\SYNC{\keyword{sync}} 61 \def\SYNC{\keyword{sync}}
67 \def\THIS{\keyword{this}} 62 \def\THIS{\keyword{this}}
68 \def\THROW{\keyword{throw}} 63 \def\THROW{\keyword{throw}}
69 \def\TRUE{\keyword{true}} 64 \def\TRUE{\keyword{true}}
70 \def\TRY{\keyword{try}} 65 \def\TRY{\keyword{try}}
71 \def\TYPEDEF{\builtinId{typedef}}
72 \def\THIS{\keyword{this}}
73 \def\VAR{\keyword{var}} 66 \def\VAR{\keyword{var}}
74 \def\VOID{\keyword{void}} 67 \def\VOID{\keyword{void}}
75 \def\WHILE{\keyword{while}} 68 \def\WHILE{\keyword{while}}
76 \def\WITH{\keyword{with}} 69 \def\WITH{\keyword{with}}
77 \def\YIELD{\keyword{yield}} 70 \def\YIELD{\keyword{yield}}
78 \def\TRUE{\keyword{true}}
79 71
80 \newenvironment{Q}[1]{{\bf #1}} 72 \newenvironment{Q}[1]{{\bf #1}}
81
82 \newenvironment{rationale}[1]{{\it #1}} 73 \newenvironment{rationale}[1]{{\it #1}}
83
84 \newenvironment{commentary}[1]{{\sf #1}} 74 \newenvironment{commentary}[1]{{\sf #1}}
85 75
86 \newenvironment{dartCode}[1][!ht] { 76 \newenvironment{dartCode}[1][!ht] {
87 % \begin{verbatim}[#1] 77 % \begin{verbatim}[#1]
88 \def\@programcr{\@addfield\strut} 78 \def\@programcr{\@addfield\strut}
89 \let\\=\@programcr 79 \let\\=\@programcr
90 \relax\@vobeyspaces\obeylines 80 \relax\@vobeyspaces\obeylines
91 81
92 \sffamily 82 \sffamily
93 }{ 83 }{
(...skipping 22 matching lines...) Expand all
116 \hspace{0pt}\marginpar{\raisebox{0.5ex}{\miniscule{\color{LMdim}#1}}}} 106 \hspace{0pt}\marginpar{\raisebox{0.5ex}{\miniscule{\color{LMdim}#1}}}}
117 107
118 % support convenient renewcommand 108 % support convenient renewcommand
119 \let\OriginalLMHash\LMHash 109 \let\OriginalLMHash\LMHash
120 110
121 % define a label, and show the associated logical location marker 111 % define a label, and show the associated logical location marker
122 \newcommand{\LMLabel}[1]{% 112 \newcommand{\LMLabel}[1]{%
123 \vspace{-\baselineskip}\hspace{0pt}\OriginalLMHash{\raisebox{10ex}{#1}}% 113 \vspace{-\baselineskip}\hspace{0pt}\OriginalLMHash{\raisebox{10ex}{#1}}%
124 \label{#1}} 114 \label{#1}}
125 % ---------------------------------------------------------------------- 115 % ----------------------------------------------------------------------
OLDNEW
« no previous file with comments | « no previous file | docs/language/dartLangSpec.tex » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698