tests/languages/php


Log

Author Commit Date CI Message
Tom Pavelec 8019e2f6 2021-02-19T17:41:31 PHP: Improved constant support for PHP 8.1 enums (#2770) This improves the highlighting of PHP 8.1 enums and class constants.
Ayesh Karunaratne f79b0eef 2021-02-18T20:35:36 PHP: Added support for PHP 8.1 enums (#2752)
Tom Pavelec 04ef309c 2021-01-20T20:12:58 PHP: Class names at the start of a string are now highlighted correctly (#2731) Some class names at the start of the input string were not detected correctly due to the way greedy matching works. This fixes the issue by splitting the `class-name` rule into two rules, one before and one after the `keyword` rule that interfered and caused the issue.
Ayesh Karunaratne 01af04ed 2021-01-07T02:01:16 PHP: Numeral syntax improvements (#2701) Improves numeral literal handling in the Prism PHP component in two ways: 1. Since PHP 7.4, it is possible to use [underscore numeric separator](https://php.watch/versions/7.4/underscore_numeric_separator). Prism correctly handles this for decimal numbers, but not for binary, octal, and hex numerals although PHP supports the underscore separator for binary, octal, and hex numeric literals as well. 2. In upcoming PHP 8.1, PHP supports an [explicit octal numeral prefix `0o`/`0O`](https://php.watch/versions/8.1/explicit-octal-notation). The existing `0` prefix is not removed. This commit updates the PHP number regex to accommodate both cases above, and expands the tests for new syntax.
Tom Pavelec df922d90 2020-10-16T22:20:59 PHP: Added support for PHP 8.0 features (#2591)
Tom Pavelec 38808e64 2020-10-13T14:03:42 PHP: Added support for PHP 7.4 + other major improvements (#2566)
Ayesh Karunaratne 1761513e 2020-10-05T18:01:19 PHP: Added `match` keyword (PHP 8.0) (#2574) PHP introduces a new [`match` keyword in PHP 8.0](https://php.watch/versions/8.0/match-expression).
Michael Schmidt 24c8f833 2020-01-05T19:56:14 PHP: Fixed exponential runtime of a pattern (#2157) This fixes the exponential runtime of the pattern used to identify PHP code embedded in HTML.
Michael Schmidt 289ddd9b 2019-02-28T21:56:01 PHP: Fixed closing tag issue (#1652) This fixes that PHP's closing tag (`?>`) was detected inside strings and comments.
volado 439e3bd7 2019-01-11T00:54:01 Made false, true, and null constants in PHP (#1694) - This adds the `constant` alias to `false` and `true`. - `null` is no longer `keyword` but a `constant`.
volado 55fb0f8e 2019-01-03T17:22:02 Update PHP keywords (#1690) This removes PHP 4 specific keywords and adds new PHP keywords. Keywords previously classified as functions are now classified as keywords.
volado f1026b4b 2019-01-03T01:41:36 Improve recognition of constants in PHP (#1688) The pattern for PHP constants now have to be a valid identifier and recognizes single-letter names.
Golmote 5f9c078a 2018-03-25T13:46:42 Make ERB, Handlebars, PHP and Smarty highlight properly in NodeJS (#1367)
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 3ce74880 2017-03-30T18:39:16 Add support for the <?= delimiter in PHP
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.
Golmote afe78bd9 2015-08-29T23:17:12 Add tests for PHP