[Github-comments] [geany/geany] PHP 7.3 Heredoc/Nowdoc support (#2414)

Thomas Hansen notifications at xxxxx
Thu Jan 2 10:54:31 UTC 2020


PHP 7.3 has changed the Heredoc/Nowdoc syntax, so that the ending delimiter doesn't need to be at the beginning of a line, and can be followed by other expressions. the following examples are valid php code now:
```
<?php
    $var = <<<EOL
    this is a test
    EOL;
```
```
<?php
    $vector = [<<<EOL
    this
    is
    a
    test
    EOL, 'other value' ];
```
But both syntax examples are not properly parsed/highlighted on Geany.
I'm not sure if this is a Scintilla bug or a Geany bug - I can see Geany has a php parser, which today is unable to parse the new syntax (code is [here](https://github.com/geany/geany/blob/master/ctags/parsers/php.c)). I tried to open a ticket on Scintilla about this, but I am not allowed to do so (looks like you need approval from the project owners to open a ticked there).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2414
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200102/b550d174/attachment.htm>


More information about the Github-comments mailing list