branch: externals/js2-mode
commit fe53814dc2a0db2e95ac06083362e43923bf83fc
Merge: b3841a7 3a80b00
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: GitHub <nore...@github.com>

    Merge pull request #544 from wyuenho/use-type-face-for-class
    
    Use type face for class
---
 js2-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index c05be21..64cc72c 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -10887,7 +10887,7 @@ If ONLY-OF-P is non-nil, only the 'for (foo of bar)' 
form is allowed."
         (_ (js2-must-match-name "msg.unnamed.class.stmt"))
         (name (js2-create-name-node t)))
     (js2-set-face (js2-node-pos name) (js2-node-end name)
-                  'font-lock-function-name-face 'record)
+                  'font-lock-type-face 'record)
     (let ((node (js2-parse-class pos 'CLASS_STATEMENT name)))
       (js2-record-imenu-functions node name)
       (js2-define-symbol js2-FUNCTION

Reply via email to