mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #3230: PHP.syntax improvement
Current php.syntax (Utopic 3:4.8.12-1) gets confused with embedded HTML or DOCTYPE statements with strings. Here's a suggested patch to fix it. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
3fb7f3d0fc
commit
0eb70f58d1
@ -3114,25 +3114,6 @@ context default
|
||||
keyword : brightcyan
|
||||
keyword ; brightmagenta
|
||||
|
||||
context exclusive ?> <? cyan
|
||||
keyword whole &*; brightgreen
|
||||
context exclusive <html <? cyan
|
||||
keyword whole &*; brightgreen
|
||||
context exclusive <HTML <? cyan
|
||||
keyword whole &*; brightgreen
|
||||
context exclusive <doctype <? cyan
|
||||
keyword whole &*; brightgreen
|
||||
context exclusive <DOCTYPE <? cyan
|
||||
keyword whole &*; brightgreen
|
||||
|
||||
context exclusive /\* \*/ brown
|
||||
spellcheck
|
||||
context exclusive // \n brown
|
||||
spellcheck
|
||||
|
||||
context linestart # \n brown
|
||||
spellcheck
|
||||
|
||||
context " " green
|
||||
spellcheck
|
||||
keyword \\" brightgreen
|
||||
@ -3152,3 +3133,24 @@ context " " green
|
||||
context ' ' brightgreen
|
||||
spellcheck
|
||||
keyword \\' brightcyan
|
||||
|
||||
context exclusive <? ?> cyan
|
||||
keyword whole &*; brightgreen
|
||||
context <html > cyan
|
||||
keyword whole &*; brightgreen
|
||||
context <HTML > cyan
|
||||
keyword whole &*; brightgreen
|
||||
context <!doctype > cyan
|
||||
keyword whole &*; brightgreen
|
||||
context <!DOCTYPE > cyan
|
||||
keyword whole &*; brightgreen
|
||||
|
||||
context exclusive /\* \*/ brown
|
||||
spellcheck
|
||||
|
||||
context exclusive // \n brown
|
||||
spellcheck
|
||||
|
||||
context linestart # \n brown
|
||||
spellcheck
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user