Skip to content

Syntax highlighting issue #5

@jacksleight

Description

@jacksleight

Voltage version

1.2.0

VSCode version

1.95.3

Laravel version

11.34.2

Livewire version

3.5.1

What happened?

This code is highlighted incorrectly:

function test()
{
    return "<?php ".' ?>';
}

It doesn't seem to like the combination of the <php string and a mix of single/double quotes:

Screenshot 2024-12-12 at 16 44 07

This is in a regular PHP file, not a Blade file.

(I know this is a weird example, I've just stripped it right down to the cause, I'm actually running into this in a Blade directive callback where it's common to use '<php' and different quotes.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions