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

Support overriding the language of the template block #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zealot128
Copy link

Follow up from #2

  • I added a test to support the case - If any attribute is given to the template tag, handle the inner content as "raw_text"
    • I found that searching for attributes is the easiest case. I hope there is no other reason to pass any other arguments to the template tag, I have never seen it in the wild.
  • I needed to add another clause in scanner.cc to handle raw_text of template similar like script/style

I am not sure about the other changes in the C source files. They are from tree-sitter generate. Let me know if this is clutter or what should be changed!

@bjesus
Copy link

bjesus commented Aug 21, 2021

Would be great to be able to have Pug syntax highlighting inside Vue files!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants