File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 72
72
(defvar jade-class-re " [.][a-zA-Z][0-9a-zA-Z_\\ -]*"
73
73
" Regexp used to match a class literal, e.g. .class, .class_name-123" )
74
74
75
+ (defvar jade-mixin-re " [+][a-zA-Z][0-9a-zA-Z_\\ -]*"
76
+ " Regexp used to match a mixin name" )
77
+
75
78
(defvar jade-double-quote-string-re " [\" ]\\ (\\\\ .\\ |[^\"\n ]\\ )*[\" ]"
76
79
" Regexp used to match a double-quoted string literal" )
77
80
84
87
(defvar jade-font-lock-keywords
85
88
`(
86
89
(, jade-keywords . font-lock-keyword-face ) ; ; keywords
87
- (" # \\ ( \\ w \\ |_ \\ |- \\ )* " . font-lock-variable-name-face ) ; ; id
88
- (" \\ (?:^[ {2,}]* \\ (?:[a-z0-9_: \\ -]* \\ ) \\ )? \\ (#[A-Za-z0-9 \-\_ ]*[^ ] \\ ) " 1 font-lock-variable-name- face ) ; ; id
89
- (" \\ (?:^[ {2,}]* \\ (?:[a-z0-9_: \\ -]* \\ ) \\ )? \\ ( \\ .[A-Za-z0-9 \-\_ ] *\\ )" 1 font-lock-type -face ) ; ; class name
90
- (" ^[ \t ]* \\ ([a-zA-Z0-9]+ \\ ) " 1 font-lock-function-name-face ) ; ; tag name
91
- ( " ^[ \t ]* \\ (-?//.* \\ ) " 1 font-lock-comment-face t ) ; ; jade block comments
90
+ (, jade-id-re . font-lock-variable-name-face ) ; ; id
91
+ (, jade-class-re . font-lock-type- face ) ; ; class name
92
+ (" \\ (-?//. *\\ )" . font-lock-comment -face ) ; ; jade block comments
93
+ (, jade-tag-re . font-lock-function-name-face )
94
+ ; ; tag name
92
95
93
96
; ; remove highlighting from literal content following tag/class/id
94
97
; ; e.g. tag Inner text
You can’t perform that action at this time.
0 commit comments