Correct lineinfo for accent quoted symbols in proc definition (#10399)

* compiler/parser: preserve lineinfo for accent quoted symbols

Previously the lineinfo for symbol $$$ in this example is:

    proc `$$$`
             ^

After this commit:

    proc `$$$`
          ^

* compiler/semstmts: correct lineinfo for accent quoted idents

Previously nimsuggest would highlight this as:

    proc `$$$`
         ^~~

After this commit:

    proc `$$$`
          ^~~

* nimsuggest/tests: add a test for accent quoted proc

Disabled by default
This commit is contained in:
alaviss 2019-01-21 22:57:48 +07:00 • committed by Andreas Rumpf
commit 413755fd45
3 changed files with 22 additions and 11 deletions

View file

@ -0,0 +1,8 @@
proc `$$$`#[!]#
discard """
disabled:true
$nimsuggest --tester $file
>highlight $1
highlight;;skProc;;1;;6;;3
"""