diff --git a/compiler/semcall.nim b/compiler/semcall.nim index 0613a41452..e8723e3df2 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -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 diff --git a/nimsuggest/tests/tqualified_highlight.nim b/nimsuggest/tests/tqualified_highlight.nim index 1b34dbade5..3b521ecc18 100644 --- a/nimsuggest/tests/tqualified_highlight.nim +++ b/nimsuggest/tests/tqualified_highlight.nim @@ -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 """