diff options
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |