Skip to content

After the current line of the HTML template tag is incorrect, subsequent line highlighting fails #124

@DevilSquirrel

Description

@DevilSquirrel
Image

Hello, I am a beginner and have encountered difficulties. I hope to receive advice
As shown in the figure, text using special characters will lose its highlighting
Use<link ref="$ {path}css /Style.css "rel=" stylesheet ">${path} character loses highlighting
When using the<# dict_tag/>tag line, the subsequent lines of HTML lose their highlighting
At the same time as losing highlighting, it also loses the quick commenting function such as<script></script>in HTML

<script> var a = 'a' should be//, not. </script>

Steps to reproduce
Using template tags or ${path} symbols in HTML
<#dict_tag id="reasontype" name="reasontype" lay-filter="reasontype" defaultVal="" dictCode="GLKZT_GLKZT_GZYY" placeholder="" disabled="disabled" />
or
link href="${path}css/style.css" rel="stylesheet" />

Expected behavior
HTML document highlights normally, InspectTree does not have errors, and quick comments can annotate normally
Like VSCode
Image

Tree-sitter version (tree-sitter --version)
0.10.0

Operating system/version
Windows 10 Enterprise

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