Skip to content

Syntax highlighting broken in style tags #102

Open

Description

@rinogo

Test case:
<style type="text/css"> <?php echo $ok; ?> </style>

Broken highlighting:
image

Related: #54

Activity

  1. akukuq commented on Dec 14, 2019

    @akukuq

    I stumbled across a related issue:
    Using HTML comments (<!--) inside the style tag breaks code highlighting for the remainder of the document.

    Test case:
    https://sourceware.org/binutils/docs/as/index.html

  2. OldStarchy commented on Sep 2, 2020

    @OldStarchy

    I've found this in vscode, the original issue I created is adrhumphreys/vscode-silverstripe#22 but the TL;DR: is

    <style>a</style>

    everything after a is incorrectly recognized as a CSS selector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions