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

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

[elpa] externals/js2-mode a8b1a5cf51 1/2: fix parsing export { foo as "b


From: ELPA Syncer
Subject: [elpa] externals/js2-mode a8b1a5cf51 1/2: fix parsing export { foo as "bar" }
Date: Sun, 8 Sep 2024 09:58:10 -0400 (EDT)

branch: externals/js2-mode
commit a8b1a5cf51a82066918ff8f02d8098e678d7d083
Author: Mihai Bazon <mihai.bazon@gmail.com>
Commit: Mihai Bazon <mihai.bazon@gmail.com>

    fix parsing export { foo as "bar" }
---
 js2-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index ec1b64e156..ea07d8b0e4 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -8984,7 +8984,8 @@ consumes no tokens."
             (let ((name
                    (or
                     (and (js2-match-token js2-DEFAULT) "default")
-                    (and (js2-match-token js2-NAME) 
(js2-current-token-string)))))
+                    (and (js2-match-token js2-NAME) (js2-current-token-string))
+                    (and (js2-match-token js2-STRING) 
(js2-current-token-string)))))
               (if name
                   (let ((node (make-js2-export-binding-node
                                :pos beg



reply via email to

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