aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2021-12-13 21:23:30 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2021-12-13 21:23:30 +0100
commitf4881fddf7e7c003a709a3ed5fd413270d41d261 (patch)
treeab4cf3008856cdebfa032bb833957c607f2735e0 /src/testing
parentc67ba465cbee1c450f75785905ba5d74d03cb3c8 (diff)
Improved type completion + add constants type, add deprecrated tag.
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.odin6
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 {