Ticket # 4060: escape backslashes in PHP single quote string.
commitaa2904eebc557fd2073cebb05ae951f2b4c38c12
authorGrzegorz Szymaszek <gszymaszek@short.pl>
Thu, 6 Feb 2020 08:20:20 +0000 (6 09:20 +0100)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 8 Feb 2020 16:45:59 +0000 (8 19:45 +0300)
tree6152c8fe55987beedf584e3ad4b81f0655f317d5
parenta5c9fa1394bb84a1fab0991c711b2e529c857439
Ticket # 4060: escape backslashes in PHP single quote string.

In PHP strings delimited with single quotes, there are two characters
that can be escaped: \ and '. For example, the PHP string 'a\'b\\c\d'
could be printed as ‘a'b\c\d’.

Escaping quotes was already possible with the PHP syntax file. This
commit adds support for escaping backslashes. It fixes mcedit’s syntax
highlighting on PHP strings that end with \\ (like 'aaa\\').

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
misc/syntax/php.syntax