Skip to content

php_htmlInStrings causes incorrect highlighting for <?php $x = '<?php'; //remaining statements #12

@TysonAndre

Description

@TysonAndre

php.vim inherits from the syntax for html.vim, so when html is put inside of a php string, that allows starting a new php region string for syntax.

Having a new option to just support a basic subset of html for php_htmlInStrings may be more appropriate.

syn cluster htmlPreproc add=phpRegion,phpRegionAsp,phpRegionSc

The htmlPreproc is needed for <a href="<?= htmlentities($url) ?>?> to be highlighted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions