@@ -651,26 +651,28 @@ endif
651651" HereDoc
652652syn case match
653653
654- SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\I\i *\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @S pell,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
655- SynFold syn region phpHereDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= " \z (\I\i *\) " $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @S pell,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
656- " including HTML,JavaScript,SQL if enabled via options
657- if (exists (" php_html_in_heredoc" ) && php_html_in_heredoc)
658- SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\(\I\i *\)\=\( html\)\c\(\i *\)\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
659- SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\(\I\i *\)\=\( javascript\)\c\(\i *\)\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlJavascript,phpIdentifierSimply,phpIdentifier,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
660- endif
661- if (exists (" php_sql_heredoc" ) && php_sql_heredoc)
662- SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\(\I\i *\)\=\( sql\)\c\(\i *\)\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @s qlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
663- endif
654+ if version >= 704
655+ SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\I\i *\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @S pell,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
656+ SynFold syn region phpHereDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= " \z (\I\i *\) " $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @S pell,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
657+ " including HTML,JavaScript,SQL if enabled via options
658+ if (exists (" php_html_in_heredoc" ) && php_html_in_heredoc)
659+ SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\(\I\i *\)\=\( html\)\c\(\i *\)\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
660+ SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\(\I\i *\)\=\( javascript\)\c\(\i *\)\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlJavascript,phpIdentifierSimply,phpIdentifier,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
661+ endif
662+ if (exists (" php_sql_heredoc" ) && php_sql_heredoc)
663+ SynFold syn region phpHereDoc matchgroup= Delimiter start = " \( <<<\)\@ 3<=\z (\(\I\i *\)\=\( sql\)\c\(\i *\)\) $" end = " ^\z 1\( ;\= $\)\@ =" contained contains= @s qlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
664+ endif
664665
665- " NowDoc
666- SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\I\i*\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained keepend extend
666+ " NowDoc
667+ SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\I\i*\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained keepend extend
667668
668- if (exists (" php_sql_nowdoc" ) && php_sql_nowdoc)
669- SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @s qlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
670- endif
671- if (exists (" php_html_in_nowdoc" ) && php_html_in_nowdoc)
672- SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\(\I\i*\)\=\(html\)\c\(\i*\)\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
673- SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlJavascript,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
669+ if (exists (" php_sql_nowdoc" ) && php_sql_nowdoc)
670+ SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @s qlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
671+ endif
672+ if (exists (" php_html_in_nowdoc" ) && php_html_in_nowdoc)
673+ SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\(\I\i*\)\=\(html\)\c\(\i*\)\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
674+ SynFold syn region phpNowDoc matchgroup= Delimiter start = + \( <<<\)\@ 3 <= ' \z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)' $ + end = " ^\z 1\( ;\= $\)\@ =" contained contains= @h tmlJavascript,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpSpecialChar,phpMethodsVar,phpStrEsc keepend extend
675+ endif
674676endif
675677
676678syn case ignore
0 commit comments