aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-23 19:22:08 +0100
committergingerBill <bill@gingerbill.org>2021-10-23 19:22:08 +0100
commit06f47621442973a664b5928bb20295f4b7b56196 (patch)
treedfb50a361d31b94e946319f76d458d1a4ca569fc /src/parser.cpp
parent2a50f9c8d410c88632f28bb8cb1325beb284d1c3 (diff)
Allow parsing for `[^]T{}` to improve error messages
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index ad025e145..7de26893e 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2526,6 +2526,9 @@ bool is_literal_type(Ast *node) {
case Ast_BitSetType:
case Ast_CallExpr:
return true;
+ case Ast_MultiPointerType:
+ // For better error messages
+ return true;
}
return false;
}