summaryrefslogtreecommitdiff
path: root/Util/latex
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-01-14 22:20:49 +0000
committerGravatar rustanleino <unknown>2010-01-14 22:20:49 +0000
commitc0eedb936ceb9de75cd64d7eb81805a4cc9c64b4 (patch)
treefbd9dced80ca9f2b4054c5cc4358f749106a1482 /Util/latex
parent9f5bb9b92d843b3718673545a62791f5049a7d74 (diff)
Dafny:
* Allow (and currently ignore) "ghost" modifier. * Fixed bug in boxing. * Check for div-by-zero error for modulo operator. * Improved emacs and latex modes.
Diffstat (limited to 'Util/latex')
-rw-r--r--Util/latex/dafny.sty10
1 files changed, 7 insertions, 3 deletions
diff --git a/Util/latex/dafny.sty b/Util/latex/dafny.sty
index f334e770..f88c3b54 100644
--- a/Util/latex/dafny.sty
+++ b/Util/latex/dafny.sty
@@ -7,9 +7,9 @@
\lstdefinelanguage{dafny}{
morekeywords={class,datatype,bool,int,object,set,seq,%
function,returns,
- var,
+ ghost,var,
method,in,
- requires,modifies,ensures,reads,free,
+ requires,modifies,ensures,reads,decreases,free,
% expressions
match,case,false,true,null,old,fresh,this,
% statements
@@ -20,15 +20,18 @@
{::}{$\bullet$}2
{:=}{$:$$=$}2
{!}{$\lnot$}1
- {!!}{$\nparallel$}1
+ {!!}{$\not\cap$}1
{==}{$=$}1
{!=}{$\neq$}1
{&&}{$\land$}1
{||}{$\lor$}1
{<=}{$\le$}1
{=>}{$\ge$}1
+ % the following isn't actually Dafny, but it gives the option to produce nicer latex
+ {|=>}{$\Rightarrow$}2
{<=set}{$\subseteq$}1
{+set}{$\cup$}1
+ {*set}{$\cap$}1
{==>}{$\Longrightarrow$}3
{<==>}{$\Longleftrightarrow$}4
{forall}{$\forall$}1
@@ -38,6 +41,7 @@
% the following isn't actually Dafny, but it gives the option to produce nicer latex
{<<}{$\langle$}1
{>>}{$\rangle$}1
+ {...}{$\ldots$}1
{\\alpha}{$\alpha$}1
{\\beta}{$\beta$}1
{\\gamma}{$\gamma$}1