Ignore:
Timestamp:
Oct 20, 2016, 12:06:38 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
d1fbaa7
Parents:
c2183a3
Message:

Finished reviewing concurrency section v0.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

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