Changeset b1e63ac5 for doc/proposals/concurrency/style/cfa-format.tex
- Timestamp:
- Jul 4, 2017, 9:40:16 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 208e5be
- Parents:
- 9c951e3 (diff), f7cb0bc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
doc/proposals/concurrency/style/cfa-format.tex (moved) (moved from doc/proposals/concurrency/cfa-format.tex ) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/proposals/concurrency/style/cfa-format.tex
r9c951e3 rb1e63ac5 1 \usepackage {xcolor}1 \usepackage[usenames,dvipsnames]{xcolor} 2 2 \usepackage{listings} 3 3 \usepackage{inconsolata} … … 144 144 % moredelim=** allows cumulative application 145 145 } 146 \lstset{ 147 morekeywords=[2]{nomutex,mutex,thread,wait,wait_release,signal,signal_block,accept,monitor,suspend,resume,coroutine} 148 language = CFA, 149 style=defaultStyle 150 } 146 147 \lstdefinestyle{cfaStyle}{ 148 escapeinside={@@}, 149 basicstyle=\linespread{0.9}\tt\footnotesize, % reduce line spacing and use typewriter font 150 keywordstyle=\bfseries\color{blue}, 151 keywordstyle=[2]\bfseries\color{Plum}, 152 commentstyle=\itshape\color{OliveGreen}, % green and italic comments 153 identifierstyle=\color{identifierCol}, 154 stringstyle=\sf\color{Mahogany}, % use sanserif font 155 mathescape=true, 156 columns=fixed, 157 aboveskip=4pt, % spacing above/below code block 158 belowskip=3pt, 159 keepspaces=true, 160 % frame=lines, 161 literate=, 162 showlines=true, % show blank lines at end of code 163 showspaces=false, 164 showstringspaces=false, 165 escapechar=\$, 166 xleftmargin=\parindentlnth, % indent code to paragraph indentation 167 moredelim=[is][\color{red}\bfseries]{**R**}{**R**}, % red highlighting 168 morekeywords=[2]{accept, signal, signal_block, wait}, 169 } 170 151 171 \lstMakeShortInline[basewidth=0.5em,breaklines=true,basicstyle=\normalsize\ttfamily\color{basicCol}]@ % single-character for \lstinline 152 172 153 \lstnewenvironment{cfacode}[1][]{ % 154 \lstset{ % 155 language = CFA, % 156 style=defaultStyle, % 157 morekeywords=[2]{nomutex,mutex,thread,wait,signal,signal_block,accept,monitor,suspend,resume,coroutine}, % 158 #1 % 159 } % 173 \lstnewenvironment{ccode}[1][]{ 174 \lstset{ 175 language = C, 176 style=defaultStyle, 177 #1 178 } 179 }{} 180 181 \lstnewenvironment{cfacode}[1][]{ 182 \lstset{ 183 language = CFA, 184 style=cfaStyle, 185 #1 186 } 160 187 }{} 161 188 … … 169 196 170 197 \lstnewenvironment{cppcode}[1][]{ 198 \lstset{ 199 language = c++, 200 style=defaultStyle, 201 #1 202 } 203 }{} 204 205 \lstnewenvironment{ucppcode}[1][]{ 171 206 \lstset{ 172 207 language = c++, … … 219 254 \newcommand{\one}{\lstinline{one_t}\xspace} 220 255 \newcommand{\ateq}{\lstinline{\@=}\xspace} 256 \newcommand{\code}[1]{\lstinline[language=CFA,style=cfaStyle]{#1}} 257 \newcommand{\pscode}[1]{\lstinline[language=pseudo,style=pseudoStyle]{#1}}
Note:
See TracChangeset
for help on using the changeset viewer.