| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* continue #9582 for consts, close #9331, fix #20114
also move extractPragma to ast to pave the way for things like {.strdefine: "abc".} etc
* changelog correctly
* fix jsgen
* update tgetimpl
* fix sighashes
* fix #19766, add comment about postfix
* fix noRewrite LOL
refs #16620
* fix changelog
* fix destructors
|
|
|
| |
Allow custom pragma on iterators
|
|
|
|
|
|
|
| |
* fix nnkBracketExpr not compiling for getImpl on customPragmaNode
* fix test import
* fix alias not working with hasCustomPragmas
|
|
|
|
|
| |
* Apply commit https://github.com/nim-lang/Nim/commit/5da931fe811717a45f2dd272ea6281979c3e8f0b that was never merged (was part of a bigger PR). Should fix issue #11932
* add a generic object for custom pragma
|
|
|
|
|
| |
* fixes #18543
* make tests green again
|
|
|
|
|
|
|
|
|
| |
* Adhere left-to-right rule for custom pragma priority
* Improve error message for no custom pragmas
* custom pragmas on var/let sym take priority over its type ones
* Workaround & bug
|
|
|
|
|
| |
* Fix getCustomPragmaVal for some multi arg pragmas
* Bootstrap fix
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* getCustomPragma is split up in more usable chunks
* changelog entry
* fix for style checks
* shitty typedesc special casing
* Add since annotation and remove typedesc comments
* Fix typo
* Revert since annotation because it breaks bootstrapping
* Export getCustomPragmaNode conditionally
* Reduce code duplication
* Update since
* Update lib/core/macros.nim
* Apply suggestions from code review
Co-authored-by: Clyybber <darkmine956@gmail.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
|
| |
|
|
|
|
|
| |
* Add a test-case for #12576
* Add a test-case for #12523
|
|
|
| |
Co-authored-by: cooldome <ariabushenko@bk.ru>
|
|
|
|
|
|
|
|
|
| |
* new minor feature: macros for proc types, to be documented
* Finished the implementation and added tests
* [skip ci] Describe the new custom pragmas in the manual and the changelog
Co-authored-by: Zahary Karadjov <zahary@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
* Prevent crash on pragma templates w/ generics
* Remove incorrect call to pragma reconversion
`semOverloadedCall` may return a node with more elements than the
original nkCall node had (implicit and/or explicit generics).
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Misc cleanup in macro code
Generate error messages using `error` instead of `assert`.
Fixes #10574
* Fix crash with hasCustomPragma on quoted fields
Use the `$` operator instead of reaching for the `strVal` field directly
|
| |
|
| |
|
|
|
|
|
|
| |
* add custom pragma support for var and let symbols
* updated changelog for custom pragmas on var and let symbols
* add oldast switch for backwards compatibility
|
| |
|
| |
|
|
|
|
|
|
| |
* fixes #8371, macros.hasCustomPragma doesn't crash anymore
* fix macros.hasCustomPragma
|
| |
|
|
|
| |
Fixes #7626
|
|
|
|
|
|
|
|
| |
* fix hasCustomPragma/getCustomPragmaVal for types without pragma
* fix pragma on pointer test
* removed trailing spaces
|
| |
|
| |
|
|
|