Sha256: fbfa7f5dca95b43be4934711d222300568a04c067b863fc966475ca8e228b71c

Contents?: true

Size: 839 Bytes

Versions: 113

Compression:

Stored size: 839 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

    # alias for symmetry between token symbol and Expression class name
    Backref = Backreference
  end
end

Version data entries

113 entries across 112 versions & 16 rubygems

Version Path
harbr-0.1.68 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.67 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.66 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.65 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.64 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.63 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.62 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.61 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.60 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.59 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.58 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.57 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.56 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.55 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.54 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.53 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.52 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.50 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.49 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb
harbr-0.1.48 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/syntax/token/backreference.rb