Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unlimited terms after ellipsis (#6843)
* Create constants * Factorize methods * Refactor to avoid repeated code * Return an array instead of element or nil. This fits better with the functionality * Factorize repetitive code * Move code where it belongs. * Take care of the index where it should. Improve readability. * Move sequence head handling where it belongs. This maintains current behaviors, but would make it trivial to raise instead or also capture the current_node's type. See [#6842] * Remove redundant return value * Add missing tests for invalid syntax with ellipsis use * Allow unlimited terms after ellipsis [#6840]
- Loading branch information
Showing
3 changed files
with
59 additions
and
44 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