Sha256: b6c938cdeedcb68d48c5146d720f92b82f5c2ded79b2bab883ce15c94cdf4e0f

Contents?: true

Size: 757 Bytes

Versions: 4

Compression:

Stored size: 757 Bytes

Contents

module Regexp::Syntax
  module Token

    module Escape
      Basic     = [:backslash, :literal]

      Backreference = [:digit]

      Control = [:control, :meta_sequence]

      ASCII = [:bell, :backspace, :escape, :form_feed, :newline, :carriage,
               :space, :tab, :vertical_tab]

      Unicode = [:codepoint_list]

      Meta  = [:dot, :alternation,
               :zero_or_one, :zero_or_more, :one_or_more,
               :bol, :eol,
               :group_open, :group_close,
               :interval_open, :interval_close,
               :set_open, :set_close,
               :baclslash]

      Hex   = [:hex]

      All   = Basic + Backreference + ASCII + Meta
      Type  = :escape
    end

    Map[Escape::Type] = Escape::All

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
regexp_parser-0.4.1 lib/regexp_parser/syntax/tokens/escape.rb
regexp_parser-0.4.0 lib/regexp_parser/syntax/tokens/escape.rb
regexp_parser-0.3.6 lib/regexp_parser/syntax/tokens/escape.rb
regexp_parser-0.3.5 lib/regexp_parser/syntax/tokens/escape.rb