Files
Nim/nimsuggest/tests/tobj_highlight.nim
alaviss 5b3571c9a4 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.
2019-10-25 01:06:53 +02:00

12 lines
175 B
Nim

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
"""