allow non-pragma special words as user pragmas (#22526)

allow non-pragma special words as macro pragmas

fixes #22525

(cherry picked from commit 602f537eb2)
This commit is contained in:
metagn
2023-08-21 21:08:57 +03:00
committed by narimiran
parent 06464fe2ff
commit c39a0139fc
3 changed files with 29 additions and 11 deletions

View File

@@ -68,3 +68,8 @@ block: # issue #10994
proc a {.bar.} = discard # works
proc b {.bar, foo.} = discard # doesn't
block: # issue #22525
macro catch(x: typed) = x
proc thing {.catch.} = discard
thing()