Commit d1b5042e authored by Martin Clochard's avatar Martin Clochard
Browse files

byso: by/so in keyword lists

parent 6509617d
......@@ -29,7 +29,7 @@
'("(\\*\\([^*)]\\([^*]\\|\\*[^)]\\)*\\)?\\*)" . font-lock-comment-face)
; '("{}\\|{[^|]\\([^}]*\\)}" . font-lock-type-face)
`(,(why3-regexp-opt '("invariant" "variant" "diverges" "requires" "ensures" "returns" "raises" "reads" "writes" "assert" "assume" "check")) . font-lock-type-face)
`(,(why3-regexp-opt '("use" "clone" "namespace" "import" "export" "coinductive" "inductive" "external" "constant" "function" "predicate" "val" "exception" "axiom" "lemma" "goal" "type" "mutable" "model" "abstract" "private" "any" "match" "let" "rec" "in" "if" "then" "else" "begin" "end" "while" "for" "to" "downto" "do" "done" "loop" "absurd" "ghost" "raise" "try" "with" "theory" "uses" "module" "converter" "fun")) . font-lock-keyword-face)
`(,(why3-regexp-opt '("use" "clone" "namespace" "import" "export" "coinductive" "inductive" "external" "constant" "function" "predicate" "val" "exception" "axiom" "lemma" "goal" "type" "mutable" "model" "abstract" "private" "any" "match" "let" "rec" "in" "if" "then" "else" "begin" "end" "while" "for" "to" "downto" "do" "done" "loop" "absurd" "ghost" "raise" "try" "with" "theory" "uses" "module" "converter" "fun" "by" "so")) . font-lock-keyword-face)
"Minimal highlighting for Why3 mode")
......@@ -158,6 +158,7 @@ on linking described in file LICENSE.
<context id="keywords" style-ref="meta-keyword">
......@@ -175,6 +176,7 @@ on linking described in file LICENSE.
......@@ -9,7 +9,7 @@ morekeywords=[1]{predicate,constant,function,goal,type,use,%
......@@ -83,12 +83,12 @@ syn keyword whyModuleKeyword contained module
syn region whyNone matchgroup=whyKeyword start="\<\(axiom\|lemma\|goal\|prop\)\>" matchgroup=whyNone end="\<\w\(\w\|'\)*\>" contains=@whyAllErrs,whyComment
syn keyword whyKeyword as constant
syn keyword whyKeyword as by constant
syn keyword whyKeyword else epsilon exists
syn keyword whyKeyword forall function
syn keyword whyKeyword if in inductive coinductive
syn keyword whyKeyword let meta
syn keyword whyKeyword not predicate
syn keyword whyKeyword not predicate so
syn keyword whyKeyword then type with
syn keyword whyKeyword any
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment