From 07c147a1803270aba871c9024e021fd913cb8e2a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 13 Oct 2020 19:01:02 +0200 Subject: treewide: unify error handling Get rid of the distinction between lexer/parser errors and runtime exceptions, use exceptions everywhere instead. Signed-off-by: Jo-Philipp Wich --- tests/00_syntax/01_unterminated_comment | 2 +- tests/00_syntax/05_block_nesting | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/00_syntax') diff --git a/tests/00_syntax/01_unterminated_comment b/tests/00_syntax/01_unterminated_comment index 0a28af1..1d3669c 100644 --- a/tests/00_syntax/01_unterminated_comment +++ b/tests/00_syntax/01_unterminated_comment @@ -2,7 +2,7 @@ Unterminated comment -- Expect stderr -- Syntax error: Unterminated template block -In line 1, byte 8: +In line 1, byte 9: `This is {# an unclosed comment` ^-- Near here diff --git a/tests/00_syntax/05_block_nesting b/tests/00_syntax/05_block_nesting index 728c00c..7b74adb 100644 --- a/tests/00_syntax/05_block_nesting +++ b/tests/00_syntax/05_block_nesting @@ -2,7 +2,7 @@ Nesting blocks into non-comment blocks should fail. -- Expect stderr -- Syntax error: Template blocks may not be nested -In line 2, byte 60: +In line 2, byte 61: `We may not nest statement blocks into expression blocks: {{ {% print(1 + 2) %} }}.` Near here --------------------------------------------------^ -- cgit v1.2.3