aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index b604350..986c47e 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -572,7 +572,9 @@ func_sign
type
: id { $$ = gen_type(AST_TYPE_ID, $1, NULL, NULL); }
- | "@" func_sign {
+ | "::" func_sign {
+ /* still not entirely sold on this signature, but it's not terrible I
+ * guess */
$$ = gen_type(AST_TYPE_POINTER, NULL, NULL, NULL);
$$->_type.next = $2;
}