fix(emacs/lean-syntax): fixes #837

This commit is contained in:
Leonardo de Moura 2015-09-28 08:45:35 -07:00
parent f01fd744cf
commit 7cb66cdfae

View file

@ -129,6 +129,7 @@
(defconst lean-font-lock-defaults (defconst lean-font-lock-defaults
`((;; Keywords `((;; Keywords
("\\(set_option\\)[ \t]*\\([^ \t\n]*\\)" (2 'font-lock-constant-face))
(,lean-keywords2-regexp . 'font-lock-keyword-face) (,lean-keywords2-regexp . 'font-lock-keyword-face)
(,lean-keywords1-regexp . 'font-lock-keyword-face) (,lean-keywords1-regexp . 'font-lock-keyword-face)
;; String ;; String
@ -142,7 +143,6 @@
(zero-or-more (or whitespace "(" "{" "[")) (zero-or-more (or whitespace "(" "{" "["))
(group (zero-or-more (not (any " \t\n\r{(["))))) (group (zero-or-more (not (any " \t\n\r{([")))))
(2 'font-lock-function-name-face)) (2 'font-lock-function-name-face))
("\\(set_option\\)[ \t]*\\([^ \t\n]*\\)" (2 'font-lock-constant-face))
;; place holder ;; place holder
(,(rx symbol-start "_" symbol-end) . 'font-lock-preprocessor-face) (,(rx symbol-start "_" symbol-end) . 'font-lock-preprocessor-face)
;; modifiers ;; modifiers