Skip to content

Quotes within a PHP tag aren't ignored #5

@benjibee

Description

@benjibee

Quotes within a PHP tag aren't ignored as they should be. This causes syntax highlighting to break.

Here's an example of an inline PHP tag within a <script> tag with proper JavaScript syntax highlighting:
image

Here's the same example using this plugin:
image

The syntax highlighting is broken after encountering the first ' inside of the PHP statement as it thinks it's a matching quote. If I swap single or double quote on the attribute it has the same issue.

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