Sha256: 9f6f075c0759eddc2b9f28f1eaf8e4b6470d605b23570455af58c2e1461f5a18

Contents?: true

Size: 608 Bytes

Versions: 8

Compression:

Stored size: 608 Bytes

Contents

module Regexp::Syntax
  module Token

    module Backreference
      Name      = [:name_ref]
      Number    = [:number, :number_ref, :number_rel_ref]

      NestLevel = [:name_nest_ref, :number_nest_ref]

      All = Name + Number + NestLevel
      Type = :backref
    end

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

      All = Name + Number
    end

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

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
regexp_parser-0.5.0 lib/regexp_parser/syntax/tokens/backref.rb
regexp_parser-0.4.13 lib/regexp_parser/syntax/tokens/backref.rb
regexp_parser-0.4.12 lib/regexp_parser/syntax/tokens/backref.rb
regexp_parser-0.4.11 lib/regexp_parser/syntax/tokens/backref.rb
regexp_parser-0.4.10 lib/regexp_parser/syntax/tokens/backref.rb
regexp_parser-0.4.9 lib/regexp_parser/syntax/tokens/backref.rb
regexp_parser-0.4.8 lib/regexp_parser/syntax/tokens/backref.rb
regexp_parser-0.4.7 lib/regexp_parser/syntax/tokens/backref.rb