Skip to content

Instantly share code, notes, and snippets.

@msullivan
Created August 16, 2012 01:45
Show Gist options
  • Select an option

  • Save msullivan/3365478 to your computer and use it in GitHub Desktop.

Select an option

Save msullivan/3365478 to your computer and use it in GitHub Desktop.
\lstdefinelanguage{rust}{
keywords={let, mut, fn, for, do, return},
keywordstyle=\color{blue}\bfseries,
ndkeywords={int},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
morestring=[b]',
morestring=[b]"
}
\lstset{
language=rust,
% backgroundcolor=\color{lightgray},
extendedchars=true,
basicstyle=\footnotesize\ttfamily,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment