1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Warn more duplicate literal hash keys

Following non-special_const literals:
* T_REGEXP
This commit is contained in:
Nobuyoshi Nakada 2021-06-03 13:26:11 +09:00
parent 37eb5e7439
commit 9f3888d6a3
Notes: git 2021-06-03 15:11:39 +09:00
5 changed files with 10 additions and 3 deletions

View file

@ -18,6 +18,8 @@ VALUE rb_reg_check_preprocess(VALUE);
long rb_reg_search0(VALUE, VALUE, long, int, int);
VALUE rb_reg_match_p(VALUE re, VALUE str, long pos);
bool rb_reg_start_with_p(VALUE re, VALUE str);
VALUE rb_reg_hash(VALUE re);
VALUE rb_reg_equal(VALUE re1, VALUE re2);
void rb_backref_set_string(VALUE string, long pos, long len);
void rb_match_unbusy(VALUE);
int rb_match_count(VALUE match);