From: Jérémie Astor Date: Tue, 15 Dec 2020 02:09:02 +0000 (+0100) Subject: :art: Fix xxxfix X-Git-Tag: nightly~1105^2~11 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=20378a4d62a0d927e1566f416a48557dac57be97;p=gwion.git :art: Fix xxxfix --- diff --git a/ast b/ast index d7a7343d..607704e1 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit d7a7343d85e41a651a8cfdda17f530ca9876c9b4 +Subproject commit 607704e19a25cd9985506c75fe600d2a4213aba1 diff --git a/src/parse/scan1.c b/src/parse/scan1.c index f6a0734b..d00d7064 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -149,7 +149,7 @@ ANN m_bool scan1_exp_decl(const Env env, const Exp_Decl* decl) { ANN static inline int opiscall(const Symbol sym) { const m_str opname = s_name(sym); - return (opname[0] == '@' || opname[0] == '$') && + return (opname[0] == '@' || opname[0] == '&') && (isalpha(opname[1]) || opname[1] == '_'); } diff --git a/tests/xxxfix/post_func.gw b/tests/xxxfix/post_func.gw index 9c2b2d29..c64ff069 100644 --- a/tests/xxxfix/post_func.gw +++ b/tests/xxxfix/post_func.gw @@ -2,4 +2,4 @@ fun int add(int i) { return i + 3; } -<<< 2 .add>>>; +<<< 2 &add>>>; diff --git a/tests/xxxfix/unary_func.gw b/tests/xxxfix/unary_func.gw index b82dc14a..51c9081e 100644 --- a/tests/xxxfix/unary_func.gw +++ b/tests/xxxfix/unary_func.gw @@ -2,4 +2,4 @@ fun int add(int i) { return i + 3; } -<<< ($add) 2 >>>; +<<< (&add) 2 >>>;