Skip to content

Commit 1f94b09

Browse files
committed
Simplify
1 parent d3d8723 commit 1f94b09

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

js2-mode.el

+2-6
Original file line numberDiff line numberDiff line change
@@ -11126,18 +11126,14 @@ expression)."
1112611126
(memq (js2-peek-token 'KEYWORD_IS_NAME)
1112711127
`( ,js2-NAME ,js2-PRIVATE_NAME ,js2-STRING ,js2-NUMBER
1112811128
,js2-LB ,js2-MUL)))
11129-
(js2-set-face (js2-current-token-beg)
11130-
(js2-current-token-end)
11131-
'font-lock-keyword-face 'record)
11129+
(js2-record-face 'font-lock-keyword-face)
1113211130
(setq type-string prop
1113311131
prev-pos (js2-current-token-beg)
1113411132
tt (js2-get-prop-name-token))))
1113511133
;; Handle generator * before the property name for in-line functions
1113611134
(when (and (>= js2-language-version 200)
1113711135
(= js2-MUL tt))
11138-
(js2-set-face (js2-current-token-beg)
11139-
(js2-current-token-end)
11140-
'font-lock-keyword-face 'record)
11136+
(js2-record-face 'font-lock-keyword-face)
1114111137
(setq star-p t
1114211138
prev-pos (or prev-pos (js2-current-token-beg))
1114311139
tt (js2-get-prop-name-token)))

0 commit comments

Comments
 (0)