Method: MathML::LaTeX::Macro#parse_error
- Defined in:
- lib/math_ml/latex.rb
#parse_error(message, rest = "", whole = nil) ⇒ Object
190 191 192 193 194 195 |
# File 'lib/math_ml/latex.rb', line 190 def parse_error(, rest="", whole=nil) rest = whole[/\A.*?(#{Regexp.escape(rest)}.*\z)/, 1] if whole rest << @scanner.rest done = @scanner.string[0, @scanner.string.size-rest.size] ParseError.new(, rest, done) end |