Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-sitter-html bug associated with attribute directives #11

Closed
EmranMR opened this issue Aug 22, 2023 · 1 comment
Closed

tree-sitter-html bug associated with attribute directives #11

EmranMR opened this issue Aug 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@EmranMR
Copy link
Owner

EmranMR commented Aug 22, 2023

There is problem with the attribute directives such as @class(), associated with tree-sitter-html
Very likely related to the ) character;

Current work around is to use blade directives as the last attribute in the tag.

<div  @class('test') slot="test" class="test">

As you can see it even breaks the github syntax highlighting☝️

HTML

Screenshot 2023-08-22 at 16 27 24

Blade Syntax

Screenshot 2023-08-22 at 16 27 06
@EmranMR
Copy link
Owner Author

EmranMR commented Aug 22, 2023

There is also no errors when the tag is used between two html attributes 🤔
Screenshot 2023-08-22 at 23 38 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant