tree-sitter-vue icon indicating copy to clipboard operation
tree-sitter-vue copied to clipboard

Support overriding the language of the template block

Open zealot128 opened this issue 3 years ago • 1 comments

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!

zealot128 avatar Jul 11 '21 16:07 zealot128

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

bjesus avatar Aug 21 '21 10:08 bjesus