Sha256: f68ce622574078b2287ac83d354cce357c816bdf3b678e5a63d992a32e32157b

Contents?: true

Size: 793 Bytes

Versions: 9

Compression:

Stored size: 793 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, :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]

      Octal = [:octal]

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

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

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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