diff options
author | alaviss <alaviss@users.noreply.github.com> | 2019-01-23 22:35:34 +0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-23 16:35:34 +0100 |
commit | 35d96d8749809863bbbb6ead1e8cf887a95a94e5 (patch) | |
tree | 922c9ddb1310ecb4f67006200c353505e9b17012 /tinyc | |
parent | bad5ad6dc764e2b1505d27a61b949079040a5f3c (diff) | |
download | Nim-35d96d8749809863bbbb6ead1e8cf887a95a94e5.tar.gz |
compiler/sem*: better lineinfo for templates (#10428)
* compiler/sem*: better lineinfo for templates Lineinfo for templates is inconsistant across the compiler, for example: doAssert true ^ ^ a[int](10) ^^ ^ The `^` marks where the compiler thinks the template starts. For qualified call, we got the same situation with `proc`s before #10427: system.once ^ Generics lineinfo within template declaration is also incorrect, for example, this is where the compiler believes the `T` in `[T]` is: template a[T](b: T) ^ This PR addresses all of these problems. * nimsuggest: add tests for template highlighting
Diffstat (limited to 'tinyc')
0 files changed, 0 insertions, 0 deletions