Changeset 27dde72 for doc/proposals/concurrency/style
- Timestamp:
- May 29, 2017, 1:39:37 PM (7 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:
- ff98952
- Parents:
- eb182b0
- Location:
- doc/proposals/concurrency/style
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/proposals/concurrency/style/cfa-format.tex
reb182b0 r27dde72 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 151 147 \lstMakeShortInline[basewidth=0.5em,breaklines=true,basicstyle=\normalsize\ttfamily\color{basicCol}]@ % single-character for \lstinline 152 148 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 } % 149 \lstnewenvironment{ccode}[1][]{ 150 \lstset{ 151 language = C, 152 style=defaultStyle, 153 #1 154 } 155 }{} 156 157 \lstnewenvironment{cfacode}[1][]{ 158 \lstset{ 159 language = CFA, 160 style=defaultStyle, 161 #1 162 } 160 163 }{} 161 164 … … 169 172 170 173 \lstnewenvironment{cppcode}[1][]{ 174 \lstset{ 175 language = c++, 176 style=defaultStyle, 177 #1 178 } 179 }{} 180 181 \lstnewenvironment{ucppcode}[1][]{ 171 182 \lstset{ 172 183 language = c++, … … 219 230 \newcommand{\one}{\lstinline{one_t}\xspace} 220 231 \newcommand{\ateq}{\lstinline{\@=}\xspace} 232 \newcommand{\code}[1]{\lstinline[language=CFA,style=defaultStyle]{#1}} 233 \newcommand{\pscode}[1]{\lstinline[language=pseudo,style=pseudoStyle]{#1}} -
doc/proposals/concurrency/style/style.tex
reb182b0 r27dde72 4 4 % \CFADefaultStyle 5 5 6 \lstset{7 morekeywords=[2]{nomutex,mutex,thread,wait,wait_release,signal,signal_block,accept,monitor,suspend,resume,coroutine},8 keywordstyle=[2]\color{blue}, % second set of keywords for concurency9 basicstyle=\linespread{0.9}\tt\small, % reduce line spacing and use typewriter font10 stringstyle=\sf\color{Mahogany}, % use sanserif font11 commentstyle=\itshape\color{OliveGreen}, % green and italic comments12 }%6 % \lstset{ 7 % morekeywords=[2]{nomutex,mutex,thread,wait,wait_release,signal,signal_block,accept,monitor,suspend,resume,coroutine}, 8 % keywordstyle=[2]\color{blue}, % second set of keywords for concurency 9 % basicstyle=\linespread{0.9}\tt\small, % reduce line spacing and use typewriter font 10 % stringstyle=\sf\color{Mahogany}, % use sanserif font 11 % commentstyle=\itshape\color{OliveGreen}, % green and italic comments 12 % }%
Note: See TracChangeset
for help on using the changeset viewer.