Fix getCustomPragmaVal for some multi arg pragmas (#17723)

* Fix getCustomPragmaVal for some multi arg pragmas

* Bootstrap fix
This commit is contained in:
Clyybber 2021-04-15 13:55:50 +02:00 • committed by GitHub
commit 51a40c1f38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 41 deletions

View file

@ -396,3 +396,12 @@ block:
newLit(hasAttr)
doAssert hasMyAttr(TObj)
# misc
{.pragma: haha.}
{.pragma: hoho.}
template hehe(key, val: string, haha) {.pragma.}
type A {.haha, hoho, haha, hehe("hi", "hu", "he").} = int
assert A.getCustomPragmaVal(hehe) == (key: "hi", val: "hu", haha: "he")