mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
Improve check-queries (#1253)
- Add checks for injections. - Allow queries that start with [A-Z] for highlights only. - Don't stop on the first error, finish checking all queries.
This commit is contained in:
parent
972f70956a
commit
c1f61d4ca1
5 changed files with 36 additions and 15 deletions
|
|
@ -257,6 +257,16 @@ the node describing the language and `@content` to describe the injection region
|
|||
```
|
||||
@{language} ; e.g. @html to describe a html region
|
||||
|
||||
@language ; dynamic detection of the injection language (i.e. the text of the captured node describes the language)
|
||||
@content ; region for the dynamically detected language
|
||||
@language ; dynamic detection of the injection language (i.e. the text of the captured node describes the language).
|
||||
@content ; region for the dynamically detected language.
|
||||
@combined ; This will combine all matches of a pattern as one single block of content.
|
||||
```
|
||||
|
||||
### Indents
|
||||
|
||||
```
|
||||
@indent ; Indent when matching this node
|
||||
@branch ; Dedent when matching this node
|
||||
@return ; Dedent when matching this node
|
||||
@ignore ; Skip this node when calculating the indentation level
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue