branch: master
commit 1b0e174d801d147aec88ecff7b50bb163b3cd2e8
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Don't record js2-xml-ref-node's in js2-recorder-identifiers
    
    Fixes #497
---
 js2-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index 2872dbd..c836fa2 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -10586,7 +10586,9 @@ array-literals, array comprehensions and regular 
expressions."
     (setq node (if js2-compiler-xml-available
                    (js2-parse-property-name nil name 0)
                  (js2-create-name-node 'check-activation nil name)))
-    (if js2-highlight-external-variables
+    (if (and js2-highlight-external-variables
+             ;; FIXME: What's TRT for `js2-xml-ref-node'?
+             (js2-name-node-p node))
         (js2-record-name-node node))
     node))
 

Reply via email to