mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add tokenizer tests
This commit is contained in:
parent
cf2f5215c8
commit
d98b7d5891
4 changed files with 79 additions and 3 deletions
|
@ -54,7 +54,7 @@ class CompileError(PrintableError):
|
|||
|
||||
print(f"""{_colors.RED}{_colors.BOLD}{self.category}: {self.message}{_colors.CLEAR}
|
||||
at {filename} line {line_num} column {col_num}:
|
||||
{_colors.FAINT}{line_num :>4} |{_colors.CLEAR} {line} {_colors.FAINT}|{" "*(col_num)}^{_colors.CLEAR}
|
||||
{_colors.FAINT}{line_num :>4} |{_colors.CLEAR}{line.rstrip()}\n {_colors.FAINT}|{" "*(col_num-1)}^{_colors.CLEAR}
|
||||
""")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue