Skip to content

Commit

Permalink
macro pragmas: allowed on template defs, fixed for const
Browse files Browse the repository at this point in the history
* constdef annotation handling same as identdefs in let or var
* template definitions allow annotation processing like other routine kinds

Details:
* reenabled `tests/pragmas/tpragmas_misc`
* updated manual for macros pragmas
* `semstmts.semConst` reworked to be like `semstmts.semLetOrVar`
* constdef annotation handling same as identdefs in let or var
* `semLetOrVarAnnotation` works on const defs, and renamed
* added tracing to `semTemplateDef`
* added tests for let/var section processing

Improvements based off of this PR: nim-lang/Nim#19406
  • Loading branch information
saem committed Jul 30, 2022
1 parent fc921c0 commit 1302b18
Show file tree
Hide file tree
Showing 7 changed files with 617 additions and 201 deletions.
Loading

0 comments on commit 1302b18

Please sign in to comment.