File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ the `:around' combinator. JS2-PARSER is the original XML parser."
7171 " `rjsx-mode' face used to highlight JSX attribute names."
7272 :group 'rjsx-mode )
7373
74+ (defface rjsx-text
75+ '((t . (:inherit font-lock-string-face )))
76+ " `rjsx-mode' face used to highlight JSX text."
77+ :group 'rjsx-mode )
78+
7479
7580; ;;; Parser constants struct definitions
7681
@@ -692,6 +697,7 @@ and {}-bracketed expressions. Return the parsed child."
692697
693698 ((= tt rjsx-JSX-TEXT)
694699 (rjsx-maybe-message " text node: '%s'" (js2-current-token-string))
700+ (js2-set-face (js2-current-token-beg) (js2-current-token-end) 'rjsx-text 'record )
695701 (js2-record-text-property (js2-current-token-beg) (js2-current-token-end)
696702 'syntax-table (standard-syntax-table ))
697703 (make-rjsx-text :value (js2-current-token-string)))
You can’t perform that action at this time.
0 commit comments