compiler/semcall: return the correct lineinfo for nkCallStrLit (#12484)
This commit is contained in:
parent
801a794039
commit
f827d75804
2 changed files with 13 additions and 1 deletions
11
nimsuggest/tests/tcallstrlit_highlight.nim
Normal file
11
nimsuggest/tests/tcallstrlit_highlight.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
func foo(s: string) = discard
|
||||
|
||||
foo"string"#[!]#
|
||||
|
||||
discard """
|
||||
$nimsuggest --tester $file
|
||||
>highlight $1
|
||||
highlight;;skFunc;;1;;5;;3
|
||||
highlight;;skType;;1;;12;;6
|
||||
highlight;;skFunc;;3;;0;;3
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue