Sha256: 7cf3bf6c4aabf9aef15e33cd9b75f9e9ff91eb452c8fced6ae884c43cffe0d20
Contents?: true
Size: 586 Bytes
Versions: 6
Compression:
Stored size: 586 Bytes
Contents
module Coradoc module Parser module Asciidoc module DocumentAttributes def attribute_name match("[a-zA-Z0-9_-]").repeat(1) end def attribute_value text | str("") >> str("\n").absent? end def document_attributes (document_attribute.repeat(1) ).as(:document_attributes) end def document_attribute str(":") >> attribute_name.as(:key) >> str(":") >> space? >> (attribute_value | str("")).as(:value) >> line_ending end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems