emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 4e5babf 03/49: Merge pull request #345 from jacott/master


From: Dmitry Gutov
Subject: [elpa] master 4e5babf 03/49: Merge pull request #345 from jacott/master
Date: Mon, 16 Jan 2017 15:35:46 +0000 (UTC)

branch: master
commit 4e5babf59686202e0e04c5d9499c1ae67fde1f0f
Merge: 0cda392 abe8d0c
Author: Dmitry Gutov <address@hidden>
Commit: GitHub <address@hidden>

    Merge pull request #345 from jacott/master
    
    Fix Highlighting function name of form {"quoted name" () {...}}
---
 js2-mode.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index db61389..add73ac 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -10871,7 +10871,8 @@ When `js2-is-in-destructuring' is t, forms like {a, b, 
c} will be permitted."
      ;; method definition: {f() {...}}
      ((and (= (js2-peek-token) js2-LP)
            (>= js2-language-version 200))
-      (when (js2-name-node-p key)  ; highlight function name properties
+      (when (or (js2-name-node-p key) (js2-string-node-p key))
+        ;; highlight function name properties
         (js2-record-face 'font-lock-function-name-face))
       (js2-parse-method-prop pos key property-type))
      ;; binding element with initializer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]