class

Hecr::Compiler::ParseError

Inherits Exception < Reference < Object

Template syntax/validation error. The message format matches HEEx's Tokenizer.ParseError so error output is familiar and corpus tests can assert exact messages:

nofile:2:4: expected tag name after <. ...
  |
1 | <div>
2 |   <>
  |    ^

Constructors

new(description : String, file : String, loc : Loc, source : String)
Source

Class methods

code_snippet(source : String, loc : Loc) : String

Renders a window of up to three lines before the error line, with a numbered gutter and a caret under the error column.

Source

Instance methods

description
Source
file
Source