Sha256: 1cb69ede2b215b9ca86b3dc5ed213af76623f83d94ecb7b2c6d8b3247800232d

Contents?: true

Size: 803 Bytes

Versions: 4

Compression:

Stored size: 803 Bytes

Contents

# REXML doesn't currently play well with RubyMotion, and we only need these
# constants, not the actual parser
#------------------------------------------------------------------------------
module REXML
  module Parsers
    class BaseParser
      LETTER = '[:alpha:]'
      DIGIT = '[:digit:]'

      COMBININGCHAR = '' # TODO
      EXTENDER = ''      # TODO

      NCNAME_STR= "[#{LETTER}_:][-[:alnum:]._:#{COMBININGCHAR}#{EXTENDER}]*"
      NAME_STR= "(?:(#{NCNAME_STR}):)?(#{NCNAME_STR})"
      UNAME_STR= "(?:#{NCNAME_STR}:)?#{NCNAME_STR}"

      NAMECHAR = '[\-\w\.:]'
      NAME = "([\\w:]#{NAMECHAR}*)"
      NMTOKEN = "(?:#{NAMECHAR})+"
      NMTOKENS = "#{NMTOKEN}(\\s+#{NMTOKEN})*"
      REFERENCE = "&(?:#{NAME};|#\\d+;|#x[0-9a-fA-F]+;)"
      REFERENCE_RE = /#{REFERENCE}/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motion-kramdown-1.16.2 lib/rubymotion/rexml_shim.rb
motion-kramdown-0.6.0 lib/rubymotion/rexml_shim.rb
motion-kramdown-0.5.1 lib/rubymotion/rexml_shim.rb
motion-kramdown-0.5.0 lib/rubymotion/rexml_shim.rb