fix(emacs/lean-syntax): syntax-highlight problem in tactics
This commit is contained in:
parent
d1ba9ba1dd
commit
21e972e34a
1 changed files with 6 additions and 4 deletions
|
@ -127,11 +127,13 @@
|
||||||
;; tactics
|
;; tactics
|
||||||
("cases[ \t\n]+[^ \t\n]+[ \t\n]+\\(with\\)" (1 'font-lock-constant-face))
|
("cases[ \t\n]+[^ \t\n]+[ \t\n]+\\(with\\)" (1 'font-lock-constant-face))
|
||||||
(,(rx (not (any "\.")) word-start
|
(,(rx (not (any "\.")) word-start
|
||||||
(or "\\b.*_tac" "Cond" "or_else" "then" "try" "when" "assumption" "eassumption" "rapply" "apply" "fapply" "rename" "intro" "intros"
|
(group
|
||||||
"generalize" "generalizes" "clear" "clears" "revert" "reverts" "back" "beta" "done" "exact" "repeat"
|
(or "\\b.*_tac" "Cond" "or_else" "then" "try" "when" "assumption" "eassumption" "rapply"
|
||||||
"whnf" "rotate" "rotate_left" "rotate_right" "inversion" "cases" "assert" "rewrite" "esimp" "unfold")
|
"apply" "fapply" "rename" "intro" "intros"
|
||||||
|
"generalize" "generalizes" "clear" "clears" "revert" "reverts" "back" "beta" "done" "exact" "repeat"
|
||||||
|
"whnf" "rotate" "rotate_left" "rotate_right" "inversion" "cases" "assert" "rewrite" "esimp" "unfold"))
|
||||||
word-end)
|
word-end)
|
||||||
. 'font-lock-constant-face)
|
(1 'font-lock-constant-face))
|
||||||
;; Types
|
;; Types
|
||||||
(,(rx word-start (or "Prop" "Type" "Type'" "Type₊" "Type₀" "Type₁" "Type₂" "Type₃") symbol-end) . 'font-lock-type-face)
|
(,(rx word-start (or "Prop" "Type" "Type'" "Type₊" "Type₀" "Type₁" "Type₂" "Type₃") symbol-end) . 'font-lock-type-face)
|
||||||
(,(rx word-start (group "Type") ".") (1 'font-lock-type-face))
|
(,(rx word-start (group "Type") ".") (1 'font-lock-type-face))
|
||||||
|
|
Loading…
Reference in a new issue