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

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

[elpa] master 8d05bb7 05/31: yield should not end a return statement


From: Dmitry Gutov
Subject: [elpa] master 8d05bb7 05/31: yield should not end a return statement
Date: Fri, 21 Jul 2017 09:04:54 -0400 (EDT)

branch: master
commit 8d05bb75f35c3c7d6d9a7f716ae55a3840b8552a
Author: Carl Lei <address@hidden>
Commit: Carl Lei <address@hidden>

    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

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