aboutsummaryrefslogtreecommitdiffstats
path: root/test/ripper
Commit message (Collapse)AuthorAgeFilesLines
* Fix Ripper with heredoc.manga_osyo2021-01-171-0/+10
|
* parse.y: handle "duplicated argument name" appropriately on ripper.yNobuhiro IMAI2021-01-091-0/+1
| | | | refs: 733ed1e184
* ripper: fix bad label parameter handling [Bug #17425]Nobuyoshi Nakada2020-12-231-15/+16
|
* ripper: fix `#tok` on some error events [Bug 17345]Nobuhiro IMAI2020-12-191-5/+26
| | | | sorting alias target by event arity, and setup suitable `Elem` for error.
* Ripper: Fixed erred token on wrong alias [Bug #17345]Nobuyoshi Nakada2020-12-161-1/+1
|
* Ripper: Refined error callbacks [Bug #17345]Nobuyoshi Nakada2020-12-152-10/+14
|
* Store all kinds of syntax errors [Bug #17345]Nobuyoshi Nakada2020-11-261-3/+29
|
* Removed a duplicate assertionNobuyoshi Nakada2020-11-261-1/+0
|
* Ripper.{lex,tokenize} return full tokens even if syntax errorNobuhiro IMAI2020-11-201-0/+8
| | | | yet another implements [Feature #17276]
* Support raise_errors keyword for Ripper.{lex,tokenize,sexp,sexp_raw}Jeremy Evans2020-11-172-0/+10
| | | Implements [Feature #17276]
* ripper: Invalid pragma value warningNobuyoshi Nakada2020-11-021-0/+6
|
* Assoc pattern matching (#3703)Nobuyoshi Nakada2020-10-261-3/+3
| | | | | [Feature #17260] One-line pattern matching using tASSOC R-assignment is rejected instead.
* Add a Ripper.lex test of :on_embexpr_endTakashi Kokubun2020-10-191-0/+7
| | | | | | | | | This is a weird use case of Ripper.lex which I'm not sure is supposed to be maintained, so I'm adding this test so that we can easily notice such changes. If we change the behavior, this will break the behavior of hamlit.gem v1 and code like https://github.com/haml/haml/pull/1043.
* Prohibit setter method names in all kinds of endless methodsNobuyoshi Nakada2020-10-121-6/+44
| | | | Also unwrap NODE_RIPPER to check the method name.
* Drop token info for endless method definitionNobuyoshi Nakada2020-06-251-4/+16
| | | | Because it does not have closing `end`.
* [ripper] added endless method definition event testsNobuyoshi Nakada2020-06-251-0/+10
|
* [ripper] fix mismatched indentations warning [Bug #16981]Nobuyoshi Nakada2020-06-241-0/+6
| | | | | The scanner location has to be set from `lex.ptok` before it is flushed by dispatching the scanner event.
* [ripper] fail unless got warning as expectedNobuyoshi Nakada2020-06-241-0/+2
|
* Introduce find pattern [Feature #16828]Kazuki Tsujimoto2020-06-142-0/+43
|
* Add leading arguments support to arguments forwardingJeremy Evans2020-06-061-3/+11
| | | | | | | | The idFWD_KWREST sections may be wrong. However, the existing idFWD_KWREST sections for ... without leading arguments are already broken. Implements [Feature #16378]
* Removed unnecessary RLIMIT_ASNobuyoshi Nakada2020-04-281-10/+3
| | | | | Even without this limit, these assertions almost certainly cause a NoMemoryError by removing the fix in 72ad8595f20.
* Warn also numbered parameter like parametersNobuyoshi Nakada2019-12-201-1/+1
| | | | [Feature #16433]
* [ripper] Fixed unique key check in pattern matchingNobuyoshi Nakada2019-11-261-0/+25
| | | | | | Check keys * by an internal table, instead of unstable dispatched results * and by parsed key values, instead of escaped forms in the source
* [ripper] Quoted label without expression must be a local variableNobuyoshi Nakada2019-11-251-0/+3
| | | | | | | | | The difference from 0b8c73aa65add5c57b46b0cfdf4e661508802172 is to add the result of `string_add` event to marking objects. ```C RNODE($1)->nd_rval = add_mark_object(p, $$); ```
* Revert "[ripper] Quoted label without expression must be a local variable"Nobuyoshi Nakada2019-11-201-3/+0
| | | | | This reverts commit 0b8c73aa65add5c57b46b0cfdf4e661508802172, which seems breaking RVALUE consistency check.
* [ripper] Quoted label without expression must be a local variableNobuyoshi Nakada2019-11-191-0/+3
|
* `#@1` is no longer an embedded variableNobuyoshi Nakada2019-11-141-1/+1
|
* Revert "Method reference operator"Nobuyoshi Nakada2019-11-122-9/+0
| | | | | This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b. [Feature #16275]
* Arguments forwarding [Feature #16253]Nobuyoshi Nakada2019-10-221-0/+6
|
* Removed idNUMPARAM_0Nobuyoshi Nakada2019-09-251-1/+0
|
* Changed numbered parameter prefixNobuyoshi Nakada2019-09-243-16/+9
|
* Name dynamically defined methods with line numbersNobuyoshi Nakada2019-09-131-35/+35
|
* Make ripper support **nil syntaxJeremy Evans2019-08-301-0/+10
| | | | | | | | | The on_params hook will use :nil as the keyword rest argument. There is a new on_nokw_param hook as well. This fixes a type issue in the previous code, where an ID was passed where a VALUE was the declared type. The symbol :nil is passed instead of the id.
* Revert "Add pipeline operator [Feature #15799]"Nobuyoshi Nakada2019-08-291-2/+0
| | | | | | | | | | | | | This reverts commits: * d365fd5a024254d7c105a62a015a7ea29ccf3e5d * d780c3662484d6072b3a6945b840049de72c2096 * aa7211836b769231a2a8ef6b6ec2fd0ec882ef29 * 043f010c28e82ea38978bf8ed885416f133b5b75 * bb4dd7c6af05c7821d572e2592ea3d0cc748d81f * 043f010c28e82ea38978bf8ed885416f133b5b75 * f169043d81524b5b529f2c1e9c35437ba5bc3a7a http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/94645
* double memory limit on MJIT.Koichi Sasada2019-08-091-1/+2
| | | | | On test with MJIT, sometimes it fails like: http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2189967
* Split test/ripper/test_files.rb to run in parallelNobuyoshi Nakada2019-07-237-18/+56
|
* Added assertions for Unicode escaped CHAR scanner eventsNobuyoshi Nakada2019-07-061-0/+11
|
* Do not dispatch a nil token in ripperNobuyoshi Nakada2019-07-041-0/+6
| | | | | | | As a comment token includes the newline, so delayed newline token just follows it should not be dispatched. [Bug #11485] Co-Authored-By: Jeremy Evans <code@jeremyevans.net>
* Add parentheses to suppress a warningNobuyoshi Nakada2019-06-281-4/+4
|
* Test string contentNobuyoshi Nakada2019-06-281-0/+1
|
* Removed unused variablesNobuyoshi Nakada2019-06-281-1/+0
|
* Fixed a variable nameNobuyoshi Nakada2019-06-281-1/+1
|
* Fix ripper fatalNobuyoshi Nakada2019-06-271-0/+3
| | | | | * parse.y (parser_yylex): return END_OF_INPUT at unterminated here document instead of an error. [Bug #15962]
* Test for unterminated here-docsNobuyoshi Nakada2019-06-271-0/+6
|
* Add pipeline operator [Feature #15799]Nobuyoshi Nakada2019-06-131-0/+2
|
* Fix the error token on "invalid hex escape"Nobuyoshi Nakada2019-06-031-0/+10
| | | | | * parse.y (tok_hex): flush token after dispatching the "invalid hex escape" parse error.
* parse.y: adjust here-doc error tokenNobuyoshi Nakada2019-05-301-3/+7
| | | | | | * parse.y (here_document): adjust token to the here-doc identifier in compile_error when a here-document misses the closing identifier.
* Include stack elements left after errorsNobuyoshi Nakada2019-05-301-0/+22
|
* parse.y: fix state after ivar/cvarNobuyoshi Nakada2019-05-291-0/+18
| | | | | * parse.y (parse_atmark): return EXPR_END or EXPR_ENDFN, depending on the previous state, even incomplete names consistently.
* parse.y: flush invalid charNobuyoshi Nakada2019-05-291-1/+10
|