-
-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "not match" and "not if" causing a syntax error (#3449)
* Updating 4th example of the STYLE_GUIDE's multi-function-call section * Add cond and whileloop to atom in ast/parser.c This fixes issue #2988, by allowing `if` and `while` to be used as expressions following the `not` operator (bzw. any other unary operator). * Also include forloop in atom in ast/parser.c `not for` had not been mentionned in #2988. Also updates the comment preceding `DEF(atom)`. * Add tests around #2988 * Untangle patch-issue-3441 This reverts commit 8121944. * Fix match guard being parsed as regular condition * Update grammar file
- Loading branch information
Showing
3 changed files
with
131 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters