Commit graph

13 commits

Author SHA1 Message Date
HParker
f84690c6e2 [ruby/yarp] ignore state on embexpr_end
Ripper state can carry over from the previous node type making coparison less useful

74509728d4
2023-08-25 19:11:14 +00:00
Kevin Newton
7002d44c10
Fix merge conflict in lib/yarp/lex_compat.rb 2023-08-25 09:00:04 -04:00
Kevin Newton
ec7a2fdc03 [ruby/yarp] Fix up lex compat on Ruby HEAD
7710cee248
2023-08-25 12:49:37 +00:00
Nobuyoshi Nakada
fe8f6dfed1 Remove yarp hack for BOM 2023-08-25 20:07:10 +09:00
Kevin Newton
0e3dc5a056 [ruby/yarp] Fix lex compat with BOM
* BOM should not impact looking for the encoding string
* We should re-encode tokens when the encoding changes
* BOM should change the column of comments only

119fc2d7b2
2023-08-24 21:30:01 +00:00
Kevin Newton
24bcd49473 [ruby/yarp] Fix first method param lex failures
When Ripper encounters a method parameter that is the first
parameter and is an identifier and it shadows a local scope, it
incorrectly marks it as END|LABEL (because it think it's a local).

We need to account for that in the lex compat in order to properly
compare.

15f725a1b1
2023-08-23 18:06:49 +00:00
HParker
9aca3528aa [ruby/yarp] Match EOF after newline behavior
in Ripper EOL after whitespace is returned as a on_nl node with the whitespace as the content

be16d1deed
2023-08-23 17:23:15 +00:00
Takashi Kokubun
3873b1eb39 Resync YARP 2023-08-16 17:47:32 -07:00
Kevin Newton
3d032cf3e8 [ruby/yarp] Simplify creation of numerics
e5f6ffa23a
2023-08-16 17:47:32 -07:00
Jemma Issroff
134d874173
Sync YARP gemspec (#8101)
* Sync YARP gemspec

We were previously not syncing the YARP gemspec over which meant
that the Ruby YARP gem was out of sync.

* Sync YARP node / lex_compat files
2023-07-20 14:51:17 -04:00
Jemma Issroff
31f83a6fea [ruby/yarp] Add source to ParseResult
f3802e03e0
2023-07-07 17:46:46 +00:00
Jemma Issroff
bfb933371d Manual YARP resync 2023-07-05 16:58:55 -04:00
Jemma Issroff
cc7f765f2c [Feature #19741] Sync all files in yarp
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
2023-06-21 11:25:39 -07:00