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:
Yves Lavoie 2014-07-14 13:25:56 +03:00 committed by Slava Zanko
parent 3fb7f3d0fc
commit 0eb70f58d1

View File

@ -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