branch: master
commit 8d05bb75f35c3c7d6d9a7f716ae55a3840b8552a
Author: Carl Lei <xecy...@gmail.com>
Commit: Carl Lei <xecy...@gmail.com>

    yield should not end a return statement
    
    return yield x; is valid.
---
 js2-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index acee6d7..1e7d2be 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -9360,7 +9360,7 @@ Last matched token must be js2-CONST or js2-VAR."
   (js2-parse-return-or-yield (js2-current-token-type) nil))
 
 (defconst js2-parse-return-stmt-enders
-  (list js2-SEMI js2-RC js2-EOF js2-EOL js2-ERROR js2-RB js2-RP js2-YIELD))
+  (list js2-SEMI js2-RC js2-EOF js2-EOL js2-ERROR js2-RB js2-RP))
 
 (defsubst js2-now-all-set (before after mask)
   "Return whether or not the bits in the mask have changed to all set.

Reply via email to