Skip to content

Pattern matching breaks subsequent syntax #4

@eugenesvk

Description

@eugenesvk

Using https://www.nushell.sh/cookbook/pattern_matching.html seems to break the syntax, subsequent text becomes unhighlighted/incorrectly highlighted

[black red yellow green purple blue indigo] | each {|c|
  match $c {
    "black" => "classy"
    "red" | "green" | "blue" => "fundamental"
    "yellow" | "purple" => "vibrant"
    _ => "innovative"
  }
}
let _H = '' # becomes black/unhighlighted

(funnily enough, works in Github comments)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions