compiler/sem*: improve lineinfo for qualified and generic procs (#10427)
Previously the compiler will believe these are where `newSeq` symbol
starts:
newSeq[int]()
^
system.newSeq[int]()
^
This commit moves them back to:
newSeq[int]()
^
system.newSeq[int]()
^
This commit is contained in:
parent
f1a841c605
commit
e962be8981
5 changed files with 56 additions and 19 deletions
18
nimsuggest/tests/tgeneric_highlight.nim
Normal file
18
nimsuggest/tests/tgeneric_highlight.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
newSeq[int]()
|
||||
system.newSeq[int]()#[!]#
|
||||
|
||||
discard """
|
||||
disabled:true
|
||||
$nimsuggest --tester $file
|
||||
>highlight $1
|
||||
highlight;;skType;;1;;7;;3
|
||||
highlight;;skProc;;1;;0;;6
|
||||
highlight;;skProc;;1;;0;;6
|
||||
highlight;;skType;;1;;7;;3
|
||||
highlight;;skProc;;1;;0;;6
|
||||
highlight;;skType;;2;;14;;3
|
||||
highlight;;skProc;;2;;7;;6
|
||||
highlight;;skProc;;2;;7;;6
|
||||
highlight;;skType;;2;;14;;3
|
||||
highlight;;skProc;;2;;7;;6
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue