branch: master
commit 2cf52e99d98c6444fb52140823a68f0fe09ad86d
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    js2-parse-highlight-prop-get: Take care now to overwrite the 
js2-function-call face
    
    #272
---
 js2-mode.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index 01c97f9..ba119fa 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -6758,7 +6758,7 @@ Shown at or above `js2-highlight-level' 3.")
                 (prop
                  (if (string-match js2-ecma-object-props prop-name)
                      'font-lock-constant-face))))))
-        (when (and (not face) prop-name)
+        (when (and (not face) target (not call-p) prop-name)
           (setq face 'js2-object-property))
         (when face
           (let ((pos (+ (js2-node-pos parent)  ; absolute

Reply via email to