forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support regexp_parser 1.8 and 2.x series
Follow rubocop#9154, rubocop#9155, and rubocop#9102. This is a step towards the widespread use of regexp_parser 2.0. RuboCop core accepts regexp_parser 1.8, but several code is already incompatible with regexp_parser 1.8. It can cause issue because these combination of versions. Therefore, this PR ports code for regexp_parser 1.8 that will never be maintained from rubocop#9102. Implementation of this patch, code is intentionally duplicated because it is evaluated only when the class is defined. Also, since obsoleted code for regexp_parser 1.8 is assumed to never be maintained, the target to be removed is clear. To be honest, it's ugly as implementation, but I think it has the least impact for RuboCop 1.x series users.
- Loading branch information
Showing
3 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters