zed/extensions/php
Sylvain Brunerie 898d48a574
php: Add syntax highlighting inside heredoc strings (#18368)
PHP heredoc strings make it easy to define string literals over multiple
lines:

```php
    $someString = <<<EOT
        multiline
        text
        EOT;
```

That `EOT` identifier can be anything else, and it is actually being
used in Sublime Text and VS Code to inject syntax highlighting for
another language in said string, depending on the identifier. For
instance, if the identifier is SQL, SQL syntax highlighting will be
applied to the contents of the string. Likewise if the identifier is CSS
or JS.

```php
    $someString = <<<SQL
        SELECT *
        FROM my_table
        SQL;
```

This PR changes the PHP extension so that it supports that feature too.

Release Notes:

- php: Added syntax highlighting inside heredoc strings
2024-09-30 10:02:12 +03:00
..
languages php: Add syntax highlighting inside heredoc strings (#18368) 2024-09-30 10:02:12 +03:00
src
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