feat(lean-syntax): color abbreviations yellow

This commit is contained in:
Floris van Doorn 2015-05-21 03:23:52 -04:00 committed by Leonardo de Moura
parent 40d5f83851
commit 8396c4c824

View file

@ -109,7 +109,7 @@
(,(rx symbol-start (or "λ" "" "" "" ":=") symbol-end) . 'font-lock-constant-face )
;; universe/inductive/theorem... "names"
(,(rx word-start
(group (or "inductive" "structure" "record" "theorem" "axiom" "axioms" "lemma" "hypothesis" "definition" "constant"))
(group (or "inductive" "structure" "record" "theorem" "axiom" "axioms" "lemma" "hypothesis" "definition" "constant" "abbreviation"))
word-end
(zero-or-more (or whitespace "(" "{" "["))
(group (zero-or-more (not (any " \t\n\r{([")))))