Skip to content

nimsuggest: Incorrect highlighting when * or { is met #7136

@alaviss

Description

@alaviss

Example:

type
  TypeA = int
  TypeB* = int
  TypeC {.unchecked.} = array[1, int]

nimsuggest highlight output:

highlight	skType	2	2	5 --> Highlight "TypeA" as skType (As expected)
highlight	skType	3	7	5 --> Highlight "* = i" as skType (Totally wrong)
highlight	skType	4	8	5 --> Highlight "{.unc" as skType (Also wrong)
highlight	skType	2	10	3
highlight	skType	3	11	3
highlight	skType	4	24	5
highlight	skType	4	33	3
highlight	skType	2	10	3
highlight	skType	3	11	3
highlight	skType	4	33	3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions