summary refs log tree commit diff stats
path: root/ci
diff options
context:
space:
mode:
authoralaviss <alaviss@users.noreply.github.com>2019-01-23 22:35:34 +0700
committerAndreas Rumpf <rumpf_a@web.de>2019-01-23 16:35:34 +0100
commit35d96d8749809863bbbb6ead1e8cf887a95a94e5 (patch)
tree922c9ddb1310ecb4f67006200c353505e9b17012 /ci
parentbad5ad6dc764e2b1505d27a61b949079040a5f3c (diff)
downloadNim-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 'ci')
0 files changed, 0 insertions, 0 deletions