Sha256: e643996137e2f3fd8e398ade044f9e23bfdfd7c220b000106aa5746d8781378f
Contents?: true
Size: 800 Bytes
Versions: 113
Compression:
Stored size: 800 Bytes
Contents
%%{ machine re_property; property_char = [pP]; property_sequence = property_char . '{' . '^'? (alnum|space|[_\-\.=])+ '}'; action premature_property_end { raise PrematureEndError.new('unicode property') } # Unicode properties scanner # -------------------------------------------------------------------------- unicode_property := |* property_sequence < eof(premature_property_end) { text = copy(data, ts-1, te) type = (text[1] == 'P') ^ (text[3] == '^') ? :nonproperty : :property name = text[3..-2].gsub(/[\^\s_\-]/, '').downcase token = self.class.short_prop_map[name] || self.class.long_prop_map[name] raise ValidationError.for(:property, name) unless token self.emit(type, token.to_sym, text) fret; }; *|; }%%
Version data entries
113 entries across 112 versions & 16 rubygems