aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/errors_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/yarp] Add names to classes and modulesKevin Newton2023-08-251-7/+11
| | | | | | | This should hopefully make it easier to compile these nodes, and also for static analysis tools for having a quick label. https://github.com/ruby/yarp/commit/f086662144
* [ruby/yarp] fix: unterminated regular expression with a heredocMike Dalessio2023-08-251-0/+8
| | | | | | | Previously this snippet would track the same newline twice, leading to a failed assertion in yp_newline_list_append. https://github.com/ruby/yarp/commit/1d3fe19a94
* [ruby/yarp] Improve handling of line endingsMike Dalessio2023-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Introduce three new inline helper functions: - `match_line_ending` - `match_line_ending_at` - `match_line_ending_addr` These functions are similar in signature to the `peek*` functions, but return the length of the line ending being inspected (or 0 if no line ending was found). These functions are then used to simplify how we're detecting line endings throughout "src/yarp.c". Also: - test coverage backfilled for `__END__` comments with CRLF line endings. - error message for invalid `%` tokens updated to not include the potential line endings. - some small refactorings for readability along the way https://github.com/ruby/yarp/commit/a00067386d
* [ruby/yarp] fix: parsing a '%' expression with a CR but not a newlineMike Dalessio2023-08-211-0/+6
| | | | | | Previously this failed an assertion and aborted. https://github.com/ruby/yarp/commit/a037d942a8
* [ruby/yarp] fix: unterminated % in argumentsMike Dalessio2023-08-181-0/+7
| | | | https://github.com/ruby/yarp/commit/efb3102369
* Resync YARPTakashi Kokubun2023-08-161-51/+34
|
* [ruby/yarp] Fixes so `bundle exec rake` can run on JRuby and TruffleRubyBenoit Daloze2023-08-161-4/+4
| | | | https://github.com/ruby/yarp/commit/e6cea4fa08
* [ruby/yarp] add a diagnostic for *rest in order after optional stateHParker2023-08-161-0/+16
| | | | https://github.com/ruby/yarp/commit/908244ba12
* [ruby/yarp] Fix testsHaldun Bayhantopcu2023-07-261-3/+1
| | | | https://github.com/ruby/yarp/commit/50e745767e
* [ruby/yarp] Added locations to errors testsHaldun Bayhantopcu2023-07-261-85/+201
| | | | https://github.com/ruby/yarp/commit/108d1221ef
* YARP resync (#8059)Jemma Issroff2023-07-121-3/+8
|
* [Feature #19741] Sync all files in yarpJemma Issroff2023-06-211-0/+984
This commit is the initial sync of all files from ruby/yarp into ruby/ruby. Notably, it does the following: * Sync all ruby/yarp/lib/ files to ruby/ruby/lib/yarp * Sync all ruby/yarp/src/ files to ruby/ruby/yarp/ * Sync all ruby/yarp/test/ files to ruby/ruby/test/yarp