Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
efdfc04b
Commit
efdfc04b
authored
Jun 13, 2011
by
Jean-Christophe
Browse files
fixed syntax coloring of records and annotations
parent
6e1eae46
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/emacs/why.el
View file @
efdfc04b
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
(
list
(
list
;; Note: comment font-lock is guaranteed by suitable syntax entries
;; Note: comment font-lock is guaranteed by suitable syntax entries
;; '("(\\*\\([^*)]\\([^*]\\|\\*[^)]\\)*\\)?\\*)" . font-lock-comment-face)
;; '("(\\*\\([^*)]\\([^*]\\|\\*[^)]\\)*\\)?\\*)" . font-lock-comment-face)
'
(
"{\\([^}]*\\)}"
.
font-lock-type-face
)
'
(
"{
}\\|{[^|]
\\([^}]*\\)}"
.
font-lock-type-face
)
`
(
,
(
why-regexp-opt
'
(
"use"
"clone"
"namespace"
"import"
"export"
"inductive"
"external"
"logic"
"parameter"
"exception"
"axiom"
"lemma"
"goal"
"type"
"mutable"
"model"
"abstract"
))
.
font-lock-builtin-face
)
`
(
,
(
why-regexp-opt
'
(
"use"
"clone"
"namespace"
"import"
"export"
"inductive"
"external"
"logic"
"parameter"
"exception"
"axiom"
"lemma"
"goal"
"type"
"mutable"
"model"
"abstract"
))
.
font-lock-builtin-face
)
`
(
,
(
why-regexp-opt
'
(
"and"
"any"
"match"
"let"
"rec"
"in"
"if"
"then"
"else"
"begin"
"end"
"while"
"invariant"
"variant"
"for"
"to"
"downto"
"do"
"done"
"label"
"loop"
"assert"
"absurd"
"assume"
"check"
"ghost"
"try"
"with"
"theory"
"uses"
"module"
))
.
font-lock-keyword-face
)
`
(
,
(
why-regexp-opt
'
(
"and"
"any"
"match"
"let"
"rec"
"in"
"if"
"then"
"else"
"begin"
"end"
"while"
"invariant"
"variant"
"for"
"to"
"downto"
"do"
"done"
"label"
"loop"
"assert"
"absurd"
"assume"
"check"
"ghost"
"try"
"with"
"theory"
"uses"
"module"
))
.
font-lock-keyword-face
)
; `(,(why-regexp-opt '("unit" "bool" "int" "float" "prop" "array")) . font-lock-type-face)
; `(,(why-regexp-opt '("unit" "bool" "int" "float" "prop" "array")) . font-lock-type-face)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment