Sha256: 8b570588930b751b3087dd1b147483c7f1ded45881f9e16ea5e6dc873e1d856c

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

require "hemingway/block/verbatim/verbatim_nodes"

module Hemingway
  module Block
    grammar Verbatim

      rule verbatim
        verbatim_text
      end

      rule verbatim_type
        "verbatim" <VerbatimNode>
      end

      rule verbatim_text
        ( !( block_end verbatim_type "}" ) . )+ <TextNode>
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hemingway-1.0.0 lib/hemingway/block/verbatim/verbatim.treetop
hemingway-0.0.3 lib/hemingway/block/verbatim/verbatim.treetop
hemingway-0.0.2 lib/hemingway/block/verbatim/verbatim.treetop