Skip to content

Add PHP constants to Buffer Symbols - #147

Open
Perlence wants to merge 2 commits into
zed-extensions:mainfrom
Perlence:add-php-constant-symbols
Open

Add PHP constants to Buffer Symbols#147
Perlence wants to merge 2 commits into
zed-extensions:mainfrom
Perlence:add-php-constant-symbols

Conversation

@Perlence

@Perlence Perlence commented Sep 1, 2026

Copy link
Copy Markdown

Summary

  • add global and class-like PHP constants to Buffer Symbols
  • capture each const_element as its own outline item so declarations with multiple constants produce distinct sibling symbols
  • retain the const keyword as symbol context
image

Validation

  • queried the extension's complete outline.scm against its pinned Tree-sitter PHP grammar
  • verified global, class, interface, and enum constants
  • verified const FIRST = 1, SECOND = 2; produces separate FIRST and SECOND matches

@cla-bot

cla-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @Perlence on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@Perlence

Perlence commented Sep 1, 2026

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Sep 1, 2026
@cla-bot

cla-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant