compiler/semtypes: improve lineinfo for exported object fields (#12495)
The line info should now points to the `a`, not the `*`, like this:
a*: string
^
Additionally this fixes nimsuggest's highlighting of exported object
fields.
This commit is contained in:
parent
e0d13abaff
commit
5b3571c9a4
2 changed files with 17 additions and 2 deletions
11
nimsuggest/tests/tobj_highlight.nim
Normal file
11
nimsuggest/tests/tobj_highlight.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
type
|
||||
O = object
|
||||
a*: int#[!]#
|
||||
|
||||
discard """
|
||||
$nimsuggest --tester $file
|
||||
>highlight $1
|
||||
highlight;;skType;;2;;2;;1
|
||||
highlight;;skType;;3;;8;;3
|
||||
highlight;;skField;;3;;4;;1
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue