tests/languages/php/string_feature.test


Log

Author Commit Date CI Message
Tom Pavelec 38808e64 2020-10-13T14:03:42 PHP: Added support for PHP 7.4 + other major improvements (#2566)
Golmote 5d7223c9 2018-03-03T21:39:51 PHP: Add support for Heredoc and Nowdoc strings
Golmote 9f1f8d67 2018-03-03T20:53:08 PHP: Add support for string interpolation inside double-quoted strings. Fix #1146
Golmote 9a542a00 2017-11-28T19:41:58 PHP: Add support for multi-line strings. Fix #1233
Andreas Rohner 0a00d7f7 2017-02-10T17:10:19 Fix the PHP language This patch is an attempt to fix the PHP language, when it is combined with markup. The problem is, that markup has a higher priority than all other tokens. This leads to weird errors, where HTML tags are highlighted inside of comments #197. One solution to this was to set the `greedy` flag for the comment token, but this leads to far worse errors like #1097. This patch should fix both issues #197 and #1097, by switching the grammar to markup on the fly. One potential problem is, that it relies on the `<?php` tag to detect if markup is present. So if a PHP file contains only markup and no PHP code at all, the result will look broken.