Skip to content

Silence overlapping char class warnings#2265

Merged
jneen merged 1 commit intomainfrom
maint.silence-overlapping-char-class-warnings
Apr 4, 2026
Merged

Silence overlapping char class warnings#2265
jneen merged 1 commit intomainfrom
maint.silence-overlapping-char-class-warnings

Conversation

@jneen
Copy link
Copy Markdown
Member

@jneen jneen commented Apr 4, 2026

This silences warnings while loading the lexers containing overlapping character classes.

In https://bugs.ruby-lang.org/issues/21870, matz has indicated that this warning should be removed.

Unfortunately, we can't use a more surgical approach because the warning happens at parse time. So we have to disable warnings globally before loading the files.

Later, we can re-enable warnings for these files if RUBY_VERSION isn't one of the affected versions.

See also k-takata/Onigmo#175

@jneen jneen added this pull request to the merge queue Apr 4, 2026
Merged via the queue into main with commit 93df9c6 Apr 4, 2026
10 checks passed
@jneen jneen deleted the maint.silence-overlapping-char-class-warnings branch April 4, 2026 14:54
@jneen jneen restored the maint.silence-overlapping-char-class-warnings branch April 8, 2026 15:08
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