Project

General

Profile

« Previous | Next » 

Revision 60ab77a1

Added by naruse (Yui NARUSE) almost 16 years ago

Warn duplicated characters in character class of regexp. [ruby-core:24593]

  • include/ruby/oniguruma.h (ONIG_SYN_WARN_CC_DUP): defined.
  • regparse.h (ScanEnv): add warnings_flag.
  • regparse.c (CC_DUP_WARN): defined for warn duplicated characters in
    character class of regexp. [ruby-core:24593]
    (add_code_range_to_buf): add CC_DUP_WARN.
    (next_state_val): add CC_DUP_WARN.
    (OnigSyntaxRuby): add ONIG_SYN_WARN_CC_DUP.
    (SET_ALL_MULTI_BYTE_RANGE): add env to arguments.
    (add_code_range): ditto.
    (add_code_range_to_buf): ditto.
    (not_code_range_buf): ditto.
    (or_code_range_buf): ditto.
    (and_code_range1): ditto.
    (and_code_range_buf): ditto.
    (and_cclass): ditto.
    (or_cclass): ditto.
    (add_ctype_to_cc_by_range): ditto.
    (add_ctype_to_cc): ditto.
    (parse_char_class): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e