Skip to content

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

Open

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

Activity

  1. added
    bug
    upstream
    on Sep 16, 2026
  2. skovhus commented on Sep 17, 2026

    @skovhus
    Collaborator

    Please re-open if this is still the case.

  3. bnjmnjrk commented on Sep 18, 2026

    @bnjmnjrk
    Author

    still reproducible in Zed 1.20.2 7c451e694f3c52ee0aeb01d7e28b5fa18cd0ad2f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions