]> Nishi Git Mirror - gwion.git/commitdiff
:art: Improve set_nspc
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 2 Oct 2019 08:43:39 +0000 (10:43 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 2 Oct 2019 08:43:39 +0000 (10:43 +0200)
src/parse/operator.c

index a5d35166f7b58a74ac96c7460710e156ae725c9a..1484c1560ad37b10e0573065d63db5694517594e 100644 (file)
@@ -126,7 +126,9 @@ ANN m_bool add_op(const Gwion gwion, const struct Op_Import* opi) {
 }
 
 ANN static void set_nspc(struct OpChecker* ock, const Nspc nspc) {
-  if(ock->opi->op == insert_symbol(ock->env->gwion->st, "@implicit")) {
+  if(ock->opi->op == insert_symbol(ock->env->gwion->st, "@implicit") ||
+     ock->opi->op == insert_symbol(ock->env->gwion->st, "@access") ||
+     ock->opi->op == insert_symbol(ock->env->gwion->st, "@repeat")) {
     struct Implicit* imp = (struct Implicit*)ock->opi->data;
     imp->e->nspc = nspc;
     return;