diff --git a/ftepp.c b/ftepp.c index fe63fbf..36299b3 100644 --- a/ftepp.c +++ b/ftepp.c @@ -1513,6 +1513,8 @@ static bool ftepp_hash(ftepp_t *ftepp) case TOKEN_KEYWORD: case TOKEN_IDENT: case TOKEN_TYPENAME: + case TOKEN_ATTRIBUTE_CLOSE: + case TOKEN_ATTRIBUTE_OPEN: if (!strcmp(ftepp_tokval(ftepp), "define")) { ftepp_inmacro(ftepp, "define"); return ftepp_define(ftepp); diff --git a/tests/accumulate.qc b/tests/accumulate.qc index 008626d..46e0446 100644 --- a/tests/accumulate.qc +++ b/tests/accumulate.qc @@ -1,11 +1,9 @@ -void foo() { +[[accumulate]] void foo() { print("hello "); } - [[accumulate]] void foo() { print("accumulation "); } - [[accumulate]] void foo() { print("world\n"); }