ammar/regexp_parser

View on GitHub
lib/regexp_parser/syntax/token/character_type.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Regexp::Syntax
  module Token
    module CharacterType
      Basic     = []
      Extended  = %i[digit nondigit space nonspace word nonword]
      Hex       = %i[hex nonhex]

      Clustered = %i[linebreak xgrapheme]

      All = Basic + Extended + Hex + Clustered
      Type = :type
    end

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