lib/hemingway/latex.treetop in hemingway-0.0.3 vs lib/hemingway/latex.treetop in hemingway-1.0.0
- old
+ new
@@ -1,10 +1,11 @@
require 'hemingway/build'
require 'hemingway/latex_nodes'
require "hemingway/block/block"
require "hemingway/footnote/footnote"
require "hemingway/math/math"
+require "hemingway/override/override"
require "hemingway/special/special"
require "hemingway/symbol/symbol"
require "hemingway/tag/tag"
require "hemingway/text/text"
@@ -12,10 +13,11 @@
grammar Latex
include Block
include Footnote
include Math
+ include Override
include Special
include Symbol
include Tag
include Text
@@ -51,10 +53,10 @@
# - So I can define methods based on the ordered choice in the top
# level of this rule. Text is already its own thing though, so an html
# method need not be defined on it because alas, it already exists as
# defined in the text rule itself!
rule content
- special / tag / block / math / text
+ special / tag / block / math / override / text
end
# Treetop does not separate lexing from parsing. Must consume all input.
rule whitespace
( " " / newline )+ <WhitespaceNode>
\ No newline at end of file