Sha256: 57adbdf8433fef703cc39c178c87777d77a8c2442a8d95a0d016f2e6db3fa269

Contents?: true

Size: 795 Bytes

Versions: 15

Compression:

Stored size: 795 Bytes

Contents

module Regexp::Syntax
  module Token
    # TODO: unify naming with RE::EscapeSequence, one way or the other, in v3.0.0
    module Escape
      Basic = %i[backslash literal]

      Control = %i[control meta_sequence]

      ASCII = %i[bell backspace escape form_feed newline carriage
                 tab vertical_tab]

      Unicode = %i[codepoint codepoint_list]

      Meta  = %i[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]

      Hex   = %i[hex]

      Octal = %i[octal]

      All   = Basic + Control + ASCII + Unicode + Meta + Hex + Octal
      Type  = :escape
    end

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

Version data entries

15 entries across 15 versions & 6 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/escape.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.6.1/lib/regexp_parser/syntax/token/escape.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.6.1/lib/regexp_parser/syntax/token/escape.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb
call_your_name-0.1.0 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.7.0/lib/regexp_parser/syntax/token/escape.rb
zilla-0.2.0 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.7.0/lib/regexp_parser/syntax/token/escape.rb
regexp_parser-2.7.0 lib/regexp_parser/syntax/token/escape.rb
regexp_parser-2.6.2 lib/regexp_parser/syntax/token/escape.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb
regexp_parser-2.6.1 lib/regexp_parser/syntax/token/escape.rb
regexp_parser-2.6.0 lib/regexp_parser/syntax/token/escape.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb
regexp_parser-2.5.0 lib/regexp_parser/syntax/token/escape.rb