From f4881fddf7e7c003a709a3ed5fd413270d41d261 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Mon, 13 Dec 2021 21:23:30 +0100 Subject: Improved type completion + add constants type, add deprecrated tag. --- src/testing/testing.odin | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/testing') diff --git a/src/testing/testing.odin b/src/testing/testing.odin index 540bb4c..0703708 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -84,6 +84,7 @@ setup :: proc(src: ^Source) { fullpath := uri.path; p := parser.Parser { + //err = parser.default_error_handler, err = index.log_error_handler, warn = index.log_warning_handler, }; @@ -107,8 +108,9 @@ setup :: proc(src: ^Source) { ok := parser.parse_file(&p, &file); - if !ok { - return; + + if !ok || file.syntax_error_count > 0 { + panic("Parser error in test package source"); } if ret := index.collect_symbols(&index.indexer.static_index.collection, file, uri.uri); ret != .None { -- cgit v1.2.3