From 8f024b5cf0cf19bc75a4526d957770b6fcf8749a Mon Sep 17 00:00:00 2001 From: Rustan Leino Date: Tue, 25 Sep 2012 15:06:54 -0700 Subject: Dafny: added iterators; for now, only parsing and resolving (and printing and refining), no compilation or verification --- Util/Emacs/dafny-mode.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Util/Emacs') diff --git a/Util/Emacs/dafny-mode.el b/Util/Emacs/dafny-mode.el index e658bfe9..4f437d23 100644 --- a/Util/Emacs/dafny-mode.el +++ b/Util/Emacs/dafny-mode.el @@ -31,13 +31,15 @@ `(,(dafny-regexp-opt '( "class" "datatype" "codatatype" "type" "function" "predicate" "copredicate" + "iterator" "ghost" "var" "method" "constructor" "module" "import" "default" "as" "opened" "static" "refines" - "returns" "requires" "ensures" "modifies" "reads" "free" + "returns" "yields" "requires" "ensures" "modifies" "reads" "free" "invariant" "decreases" )) . font-lock-builtin-face) `(,(dafny-regexp-opt '( - "assert" "assume" "break" "choose" "then" "else" "if" "label" "return" "while" "print" "where" + "assert" "assume" "break" "choose" "then" "else" "if" "label" "return" "yield" + "while" "print" "where" "old" "forall" "exists" "new" "parallel" "in" "this" "fresh" "match" "case" "false" "true" "null")) . font-lock-keyword-face) `(,(dafny-regexp-opt '("array" "array2" "array3" "bool" "multiset" "map" "nat" "int" "object" "set" "seq")) . font-lock-type-face) -- cgit v1.2.3