Sha256: 93a602d7c432a3f4b0ac518e2b327df30eda27d3b2d00c992bccc341bce6d1b1

Contents?: true

Size: 338 Bytes

Versions: 2

Compression:

Stored size: 338 Bytes

Contents

require "hemingway/special/special_nodes"

module Hemingway
  grammar Special

    # Special characters that need to be escaped in Latex.
    # Example: War \& Peace
    rule special
      escape character:( "#" / "$" / "%" / "&" / "_" / "{" / "}" / "textbackslash{}" ) <SpecialNode>
    end

    rule escape
      "\\"
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hemingway-1.0.0 lib/hemingway/special/special.treetop
hemingway-0.0.3 lib/hemingway/special/special.treetop