tree-sitter / tree-sitter-javascript

Javascript grammar for tree-sitter
MIT License
314 stars 108 forks source link

Update highlights.scm for content_tag #300

Closed NullVoxPopuli closed 4 weeks ago

NullVoxPopuli commented 3 months ago

Updates the surrounding tokens for content-tag, <template> (the entirety of the contents here are passed to a sub-language, glimmer in this case in the screenshots)

Before: image

After: image

Info on content_tag:

Related: https://github.com/tree-sitter/tree-sitter-typescript/pull/277

Checklist:

NullVoxPopuli commented 2 months ago

rebased

NullVoxPopuli commented 2 months ago

not sure how test failures could be related? :thinking:

NullVoxPopuli commented 2 months ago

rebased, and green!

amaanq commented 4 weeks ago

note that this doesn't influence editor highlighting (unless your editor directly pulls these queries in)