branch: externals/js2-mode commit a8b1a5cf51a82066918ff8f02d8098e678d7d083 Author: Mihai Bazon <mihai.ba...@gmail.com> Commit: Mihai Bazon <mihai.ba...@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