Skip to content

Conversation

@Earlopain
Copy link
Collaborator

In #3849, I wondered why for the lex method I added some files as excludes for the first time. Turns out, the result contains different token types that lie about equality for LexTest.

That seems useful only for testing, so I removed it. It's better to explicitly list the excludes and handle specially certain cases when asserting (like ignoring state for on_heredoc_end). Since RipperLex already contains full tests for the lex method (added in the PR linked above), I removed the ones in LexTest. They make more sense in the ripper class to me.

Also, some of the special token types were not necessary anymore, like EndContentToken. Probably was fixed at some point.

In ruby#3849, I wondered why for the lex method
I added some files as excludes for the first time.
Turns out, the result contains different token types that lie about equality for `LexTest`.

That seems useful only for testing, so I removed it. It's better to explicitly list the excludes and
handle specially certain cases when asserting (like ignoring state for `on_heredoc_end`).
Since `RipperLex` already contains full tests for the lex method, I removed the ones in `LexTest`. They make more sense in the ripper class to me.

Also, some of the special token types were not necessary anymore, like `EndContentToken`. Probably was fixed at some point.
@Earlopain
Copy link
Collaborator Author

Right, the CI lext step also needs this. I'll come back to this later

@Earlopain Earlopain marked this pull request as draft January 17, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant