mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
feat: add .tsqueryrc.json
This commit is contained in:
parent
ed1f573aae
commit
037ac775e1
3 changed files with 377 additions and 0 deletions
|
|
@ -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 node’s 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue