Skip to content

PHP syntax highlighting: class imports, class definitions, and namespaces all share the same color #40

@vinkla

Description

@vinkla

PHP syntax highlighting isn't working as expected. Class imports (use statements), class definitions, and namespace declarations all display the same color, making them hard to distinguish.

Zed: 1.5.4
GitHub Theme: 0.1.8

Expected behavior

These distinct syntax elements should be highlighted with different colors:

  • namespace declarations
  • use / class import statements
  • Class definitions

Actual behavior

All three are rendered in a single, identical color.

Example

GitHub Light in Zed

Image

One Light in Zed

Image

GitHub Light on GitHub.com

Image

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