mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 10:24:44 +00:00
semcall: correct lineinfo for accquoted symbols (#10461)
This commit is contained in:
@@ -464,7 +464,7 @@ proc updateDefaultParams(call: PNode) =
|
||||
|
||||
proc getCallLineInfo(n: PNode): TLineInfo =
|
||||
case n.kind
|
||||
of nkBracketExpr, nkCall, nkCommand: getCallLineInfo(n.sons[0])
|
||||
of nkAccQuoted, nkBracketExpr, nkCall, nkCommand: getCallLineInfo(n.sons[0])
|
||||
of nkDotExpr: getCallLineInfo(n.sons[1])
|
||||
else: n.info
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
system.echo#[!]#
|
||||
system.once
|
||||
system.`$` 1
|
||||
|
||||
discard """
|
||||
$nimsuggest --tester $file
|
||||
@@ -9,4 +10,5 @@ highlight;;skProc;;1;;7;;4
|
||||
highlight;;skTemplate;;2;;7;;4
|
||||
highlight;;skTemplate;;2;;7;;4
|
||||
highlight;;skTemplate;;2;;7;;4
|
||||
highlight;;skProc;;3;;8;;1
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user