Skip to content

Incorrect syntax highlighting when using pipelines and short-circuit #1374

@bnjmnjrk

Description

@bnjmnjrk

Code editor

zed

Platform

archlinux

Version

Zed 0.219.4 5595f7ce23d51a58eb66dd025a487bbd6c75dad1

What steps will reproduce the bug?

create a bash file with the contents

function f1 {
  echo hi | echo hi | echo hi
}

function f2 {
  echo hi
  echo hi && echo hi
}

How often does it reproduce? Is there a required condition?

always

What is the expected behavior?

correct syntax highlighting

What do you see instead?

function f2 {
  echo hi
  echo hi

is highlighted as a string

Image

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions