summary refs log tree commit diff stats
path: root/compiler/ccgreset.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-08-29 17:11:37 +0300
committerGitHub <noreply@github.com>2024-08-29 16:11:37 +0200
commitd7e77b330f3f84a9cebcca057c0697687ebe8ec3 (patch)
tree33d3df9299980c8985c527305974c8641aa84c79 /compiler/ccgreset.nim
parentda7670c8e0aff740a66783e83134d212383f9dd1 (diff)
downloadNim-d7e77b330f3f84a9cebcca057c0697687ebe8ec3.tar.gz
fix `include` in templates, with prefix operators (#24029)
fixes #12539, refs #21636

`evalInclude` now uses `getPIdent` to check if a symbol isn't `/`
anymore instead of assuming it's an ident, which it's not when used in
templates. Also it just checks if the symbol is `as` now, because there
are other infix operators that could be used like `/../`.

It also works with prefix operators now by copying what was done in
#21636.
Diffstat (limited to 'compiler/ccgreset.nim')
0 files changed, 0 insertions, 0 deletions