-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathultimate-js-mode--highlights-jsx.el
44 lines (34 loc) · 1.39 KB
/
ultimate-js-mode--highlights-jsx.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
(defun ultimate-js-mode--partial-queries-jsx (language)
"Custom highlighting queries"
(list
:language language
:feature 'highlight
'((jsx_opening_element (identifier) @font-lock-tag-face (:match "\\`[a-z][^.]*\\'" @font-lock-tag-face)))
:language language
:feature 'highlight
'((jsx_closing_element (identifier) @font-lock-tag-face (:match "\\`[a-z][^.]*\\'" @font-lock-tag-face)))
:language language
:feature 'highlight
'((jsx_self_closing_element (identifier) @font-lock-tag-face (:match "\\`[a-z][^.]*\\'" @font-lock-tag-face)))
:language language
:feature 'highlight
'((jsx_opening_element (identifier) @font-lock-function-name-face))
:language language
:feature 'highlight
'((jsx_closing_element (identifier) @font-lock-function-name-face))
:language language
:feature 'highlight
'((jsx_self_closing_element (identifier) @font-lock-function-name-face))
:language language
:feature 'highlight
'((jsx_attribute (property_identifier) @font-lock-attribute-face))
:language language
:feature 'highlight
'((jsx_opening_element (["<" ">"]) @font-lock-bracket-face))
:language language
:feature 'highlight
'((jsx_closing_element (["</" ">"]) @font-lock-bracket-face))
:language language
:feature 'highlight
'((jsx_self_closing_element (["<" "/>"]) @font-lock-bracket-face))))
(provide 'ultimate-js-mode--highlights-jsx)