Skip to content

Commit

Permalink
Revisit lex.rake, make lex:rubygems more useable
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Aug 30, 2023
1 parent 440cf93 commit 4c76f4a
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 216 deletions.
2 changes: 1 addition & 1 deletion bin/lex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pattern = "%-70s %-70s"
ripper =
begin
YARP.lex_ripper(source)
rescue SyntaxError
rescue ArgumentError, SyntaxError
# If Ripper raises a syntax error, we want to continue as if it didn't
# return any tokens at all. YARP won't raise a syntax error, so it's nicer
# to still be able to see the tokens that YARP generated.
Expand Down
Loading

0 comments on commit 4c76f4a

Please sign in to comment.