Skip to content

dashes are wrongly considered as token boundaries (specifically, in Goto Definition) #202

Open
@pickx

Description

@pickx

given the following code

def foo-bar [] { }

def baz [] {
    foo-bar
}

in the foo-bar call inside baz,

  1. Goto Definition on the foo links to the token foo in def foo-bar
  2. Goto Definition on the bar links to the token bar in def foo-bar
  3. No Goto Definition on the dash between foo and bar
  4. Hovering on any part of foo-bar including the dash, correctly shows the information for foo-bar

instead, for 1-3, all parts of the identifier should link to the token foo-bar of def foo-bar

(note that nushell recommends kebab-case for function names, so this is a common thing.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions