Sha256: 7cd896aa8264b731a9bf7a00563daed696af66aa57ece3c02750cde77d7db2fb

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 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:( "#" / "$" / "%" / "&" / "_" / "{" / "}" ) <SpecialNode>
    end

    rule escape
      "\\"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hemingway-0.0.2 lib/hemingway/special/special.treetop