mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
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>
This commit is contained in:
parent
a5c9fa1394
commit
aa2904eebc
@ -3136,6 +3136,7 @@ context " " green
|
||||
|
||||
context ' ' brightgreen
|
||||
spellcheck
|
||||
keyword \\\\ brightcyan
|
||||
keyword \\' brightcyan
|
||||
|
||||
context exclusive <? ?> cyan
|
||||
|
Loading…
Reference in New Issue
Block a user