branch: elpa/jade-mode
commit 0de371694acd44a33979b0baca303b12c9745517
Author: Jaakko Pallari <[email protected]>
Commit: Jaakko Pallari <[email protected]>
Match zero or more whitespace in BOL instead of one or more.
This fixes unindented tags not getting highlighted.
---
jade-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/jade-mode.el b/jade-mode.el
index db9265c52e..f71c333d53 100644
--- a/jade-mode.el
+++ b/jade-mode.el
@@ -47,9 +47,9 @@ For detail, see `comment-dwim'."
`((,"!!!\\|doctype\\( ?[A-Za-z0-9\-\_]*\\)?" 0 font-lock-comment-face) ;;
doctype
(,jade-keywords . font-lock-keyword-face) ;; keywords
(,"#\\(\\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
- (,"^[ {2,}]+[a-z0-9_:\\-]*" 0 font-lock-function-name-face))) ;; tag name
+ (,"\\(?:^[ {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
+ (,"^[ {2,}]*[a-z0-9_:\\-]*" 0 font-lock-function-name-face))) ;; tag name
;; syntax table
(defvar jade-syntax-table