Sha256: f50ac9dad9be50781841431510ab8102a12da2217c90ff3005955ee231249116

Contents?: true

Size: 738 Bytes

Versions: 23

Compression:

Stored size: 738 Bytes

Contents

module Regexp::Syntax
  module Token
    module Backreference
      Plain     = %i[number]
      NumberRef = %i[number_ref number_rel_ref]
      Number    = Plain + NumberRef
      Name      = %i[name_ref]

      RecursionLevel = %i[name_recursion_ref number_recursion_ref]

      V1_8_6 = Plain

      V1_9_1 = Name + NumberRef + RecursionLevel

      All = V1_8_6 + V1_9_1
      Type = :backref
    end

    # Type is the same as Backreference so keeping it here, for now.
    module SubexpressionCall
      Name      = %i[name_call]
      Number    = %i[number_call number_rel_call]

      All = Name + Number
    end

    Map[Backreference::Type] = Backreference::All +
                               SubexpressionCall::All
  end
end

Version data entries

23 entries across 21 versions & 7 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.6.1/lib/regexp_parser/syntax/token/backreference.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.6.1/lib/regexp_parser/syntax/token/backreference.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.6.1/lib/regexp_parser/syntax/token/backreference.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/regexp_parser-2.2.1/lib/regexp_parser/syntax/token/backreference.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/regexp_parser-2.2.1/lib/regexp_parser/syntax/token/backreference.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb
call_your_name-0.1.0 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.7.0/lib/regexp_parser/syntax/token/backreference.rb
zilla-0.2.0 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.7.0/lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.7.0 lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.6.2 lib/regexp_parser/syntax/token/backreference.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.6.1 lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.6.0 lib/regexp_parser/syntax/token/backreference.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.5.0 lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.4.0 lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.3.1 lib/regexp_parser/syntax/token/backreference.rb
regexp_parser-2.3.0 lib/regexp_parser/syntax/token/backreference.rb