]> code.delx.au - gnu-emacs-elpa/commitdiff
js2-parse-highlight-prop-get: Take care now to overwrite the js2-function-call face
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 26 Oct 2015 10:05:49 +0000 (12:05 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 26 Oct 2015 10:05:49 +0000 (12:05 +0200)
#272

js2-mode.el

index 01c97f9ca9ae5d4a8a0f5295a99d2fe440d85336..ba119faa700dab0afbb335a9659865120b5e38de 100644 (file)
@@ -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