Changeset 6d7c3df for doc/LaTeXmacros/common.tex
- Timestamp:
- Oct 26, 2016, 5:49:40 PM (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:
- 03d416f, 25f49f4, 47a8d17
- Parents:
- 1b29996 (diff), fe7b281 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
r1b29996 r6d7c3df 227 227 228 228 % CFA programming language, based on ANSI C (with some gcc additions) 229 \lstdefinelanguage{Pseudo}{ 230 morekeywords={string,uint,int,bool,float},% 231 sensitive=true,% 232 morecomment=[l]{//},% 233 morecomment=[s]{/*}{*/},% 234 morestring=[b]',% 235 morestring=[b]",% 236 morestring=[s]{`}{`},% 237 }% 238 239 \lstset{ 240 language=Pseudo, 241 columns=fullflexible, 242 basicstyle=\linespread{0.9}\tt\small, % reduce line spacing and use typewriter font 243 stringstyle=\sf\color{Mahogany}, % use sanserif font 244 commentstyle=\itshape\color{OliveGreen}, % green and italic comments 245 tabsize=4, % 4 space tabbing 246 xleftmargin=\parindentlnth, % indent code to paragraph indentation 247 extendedchars=true, % allow ASCII characters in the range 128-255 248 escapechar=§, % escape to latex in CFA code 249 mathescape=true, % allow $...$ LaTeX math escapes in code 250 %keepspaces=true, % 251 showstringspaces=false, % do not show spaces with cup 252 showlines=true, % show blank lines at end of code 253 aboveskip=4pt, % spacing above/below code block 254 belowskip=3pt, 255 moredelim=**[is][\color{red}]{®}{®}, % red highlighting 256 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting 257 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting 258 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords 259 % replace/adjust listing characters that look bad in sanserif 260 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1 261 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1 262 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2, 263 }% 264 265 % CFA programming language, based on ANSI C (with some gcc additions) 229 266 \lstdefinelanguage{CFA}[ANSI]{C}{ 230 267 morekeywords={_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto, … … 261 298 \lstMakeShortInline© % single-character for \lstinline 262 299 300 263 301 \let\Oldthebibliography\thebibliography 264 302 \renewcommand\thebibliography[1]{
Note: See TracChangeset
for help on using the changeset viewer.