Sha256: 1c273cbb296d3be49e86b1bbba80ee6efd3ab903e8db3f55433d270b43698d6a

Contents?: true

Size: 429 Bytes

Versions: 28

Compression:

Stored size: 429 Bytes

Contents

grammar Tags
  include Basic
  
  rule tags
    tag more:(', ' tag)* <Tags>
  end

  rule tag
    tag_name opt:(": " tag_value)? {
      def name
        tag_name.text_value
      end
    
      def value
        if opt.respond_to?("tag_value")
          opt.tag_value.text_value
        else
          nil
        end
      end
    }
  end
  
  rule tag_value
    (![\n:,] .)+
  end
  
  rule tag_name
    (![\n:,] .)+
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
distil-0.12.6 vendor/pdoc/lib/pdoc/parser/treetop_files/tags.treetop
distil-0.12.4 vendor/pdoc/lib/pdoc/parser/treetop_files/tags.treetop
distil-0.12.3 vendor/pdoc/lib/pdoc/parser/treetop_files/tags.treetop
distil-0.12.2 vendor/pdoc/lib/pdoc/parser/treetop_files/tags.treetop
distil-0.12.1 vendor/pdoc/lib/pdoc/parser/treetop_files/tags.treetop
pdoc-0.2.0 lib/pdoc/parser/treetop_files/tags.treetop
distil-0.12.0 vendor/pdoc/lib/pdoc/parser/treetop_files/tags.treetop
distil-0.11.8 vendor/pdoc/lib/pdoc/parser/treetop_files/tags.treetop