components/prism-php.min.js


Log

Author Commit Date CI Message
Golmote ad25d221 2018-03-03T21:41:19 PHP: Fix shell-comment failure now that strings are greedy
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
Golmote 5235f18e 2017-10-22T15:12:42 PHP: Don't use captures if not needed
Andreas Rohner 36bc560e 2017-05-13T09:34:37 Check for possible pre-existing marker strings in PHP
Andreas Rohner 3ce74880 2017-03-30T18:39:16 Add support for the <?= delimiter in PHP
Andreas Rohner 84107fab 2017-02-10T17:44:45 Use different replacement marker for PHP, because curly braces are highlighted as punctuation in JavaScript and CSS.
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 65cbaa95 2017-05-08T13:27:57 Run gulp after #1107
Golmote 86aa3d21 2016-09-01T23:43:11 Revert #998 + run normalize-whitespace and remove-initial-line-feed plugins in the before-sanity-check hook. Fix #1018 (see issue for discussion)
Golmote d8fefde6 2016-07-12T09:09:52 Don't restore env.code from backupCode in Handlebars, PHP and Smarty components
Golmote 318aab39 2016-07-05T19:00:52 Make PHP comments greedy. Fix #197
Golmote 895bf46b 2015-09-20T16:25:21 Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772
Golmote f9d94520 2015-08-29T23:16:25 PHP: Simplified patterns
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Golmote 00955466 2015-01-29T07:49:18 PHP : Handle shell-like comment after strings because they are less common than strings containing hashes
Andreas Rohner b1cc49d8 2014-08-23T20:02:02 Update minified and auto generated files
Andreas Rohner 312e989c 2014-08-19T12:01:00 Fix line-numbers for PHP in markup The problem is, that inline php code can be anywhere inside of a HTML element. To properly highlight this the php language implementation temporarily replaces all inline php code in `env.code` with something like `{{PHP0}}`. After the markup highlighting is finished it replaces it again with the real code, but it leaves `env.code` corrupted. Since the line-numbers plugin uses `env.code` to count the number of lines, the result will be broken. So to fix this, it must be ensured, that `env.code` is restored before the line-numbers plugin uses it.
Ben Briggs 7cfd29a9 2014-05-26T11:20:55 Rebuild minified files.
Lea Verou 603a8a02 2014-05-24T15:26:54 Added twitter link to footer, minified some files
Lea Verou 0bf2a8e5 2014-05-22T17:28:57 Updated minified files
Lea Verou 36471491 2014-04-21T13:36:32 Updated minified files
Miles Johnson 685b1652 2013-07-13T12:24:13 Use all markup patterns instead of just tag within PHP blocks [Issue #134]
Miles Johnson 50485867 2013-07-03T02:22:27 Added min versions
Miles Johnson 0c8c1789 2013-07-02T18:18:07 Quick fixes Removed PHP from examples
Miles Johnson a2db2b5c 2013-07-02T16:54:46 Added legit markup support
Miles Johnson 52b05010 2013-06-03T18:14:02 Removed markup parsing
Miles Johnson c82d6df0 2013-05-18T17:31:20 Added min files
Miles Johnson b4c67349 2013-05-17T19:21:25 Readded word boundaries
Miles Johnson 3129ed87 2013-05-17T16:57:08 More example testing
Miles Johnson 45a54837 2013-05-16T21:08:06 Moved function to clike
Miles Johnson b1003de3 2013-05-16T12:19:58 More improvements and testing
Miles Johnson 5f2d004c 2013-05-14T12:05:57 Added min files