feat: add .tsqueryrc.json

This commit is contained in:
Christian Clason 2025-04-22 10:44:45 +02:00
parent ed1f573aae
commit 037ac775e1
3 changed files with 377 additions and 0 deletions

View file

@ -364,6 +364,7 @@ the node describing the language and `@injection.content` to describe the inject
```query
@injection.language ; dynamic detection of the injection language (i.e. the text of the captured node describes the language)
@injection.content ; region for the dynamically detected language
@injection.filename ; indicates that the captured nodes text may contain a filename; the corresponding filetype is then looked-up up via vim.filetype.match() and treated as the name of a language that should be used to re-parse the `@injection.content`
```
For example, to inject javascript into HTML's `<script>` tag