branch: externals/poke-mode commit b06f550bd375fcd563cfe05d78c9c39822bfc1c1 Author: Jose E. Marchesi <jose.march...@oracle.com> Commit: Jose E. Marchesi <jose.march...@oracle.com>
Better handle `else' --- poke-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poke-mode.el b/poke-mode.el index cd08b4a97c..fdbcb005a0 100644 --- a/poke-mode.el +++ b/poke-mode.el @@ -283,8 +283,9 @@ (stmt (comp-stmt) (id "=" exp) ("return" exp) - ("if" "if-(" exp "if-)" stmt "else" stmt) + ("else" exp-if) (exp)) + (exp-if ("if" "if-(" exp "if-)" stmt)) (stmts (stmts ";" stmts) (stmt))) '((assoc ";") (assoc ",") (assoc "+") (assoc "-")))))