branch: elpa/jade-mode
commit c0b9cfc7552eb605bcfc6679ffb26e7a87e47d83
Author: Shander Lam <[email protected]>
Commit: Shander Lam <[email protected]>
Modify mather for doctype.
---
jade-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jade-mode.el b/jade-mode.el
index bea68fc81d..da44e28ab3 100644
--- a/jade-mode.el
+++ b/jade-mode.el
@@ -26,7 +26,7 @@
(string-match-p "^[ ]*$" (jade-line-as-string)))
(setq jade-font-lock-keywords
- `((,"!!!\\( \\(default\\|5\\|transitional\\)\\)?" 0
font-lock-comment-face) ;; doctype
+ `((,"!!!\\( ?[A-Za-z0-9\-\_]*\\)?" 0 font-lock-comment-face) ;; doctype
(,"#\\(\\w\\|_\\|-\\)*" . font-lock-variable-name-face) ;; id
(,"\\(?:^[ {2,}]+\\(?:[a-z0-9_:\\-]*\\)\\)?\\(#[A-Za-z0-9\-\_]*[^
]\\)" 1 font-lock-variable-name-face) ;; id
(,"\\(?:^[ {2,}]+\\(?:[a-z0-9_:\\-]*\\)\\)?\\(\\.[A-Za-z0-9\-\_]*\\)"
1 font-lock-type-face) ;; class name