zed/extensions/php
Roman Zipp 200b2bf70a
php: Add syntax highlighting for Intelephense completions (#18774)
Release Notes:

- N/A

This PR introduces syntax highlighting for intelephense autocomple. The
styling was selected to roughly match PHPStorm's default scheme.

Please note that I'm not very familiar with writing Rust, but I'm happy
to adapt to any requested changes!

## Examples

### Object attributes, methods and constants

![Screenshot 2024-10-06 at 13 38
03](https://github.com/user-attachments/assets/a91634ff-0f2e-41f0-b548-ecb09c40947c)
![Screenshot 2024-10-06 at 13 38
11](https://github.com/user-attachments/assets/b6f179f4-898b-4d82-9d36-a3e82328325c)

### Typed enum members

![Screenshot 2024-10-06 at 13 38
53](https://github.com/user-attachments/assets/7133b981-4f68-4210-b233-403cdf3ec9bb)
![Screenshot 2024-10-06 at 13 38
41](https://github.com/user-attachments/assets/2e806f3d-3538-45f2-b075-b8be5902b786)

### Variables

Includes altered highlighting for [reserved variable
names](https://www.php.net/manual/en/reserved.variables.php).

![Screenshot 2024-10-06 at 13 39
30](https://github.com/user-attachments/assets/be426eb8-5879-432d-b302-391c2c68a7cb)

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-06 10:11:21 -04:00
..
languages php: Add syntax highlighting inside heredoc strings (#18368) 2024-09-30 10:02:12 +03:00
src php: Add syntax highlighting for Intelephense completions (#18774) 2024-10-06 10:11:21 -04:00
Cargo.toml php: Bump to v0.2.0 (#17674) 2024-09-10 22:57:44 -04:00
extension.toml php: Bump to v0.2.0 (#17674) 2024-09-10 22:57:44 -04:00
LICENSE-APACHE Extract PHP support into an extension (#9966) 2024-03-29 14:51:54 -04:00