diff options
| author | Omar Valdez <omarantoniovaldezf2@gmail.com> | 2024-07-27 16:28:19 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-28 11:43:41 +0200 |
| commit | 51bba660a89e0027929206b622c9c1cbdd995cfb (patch) | |
| tree | 412313302f69c4dbd191f99c1529017455ad3429 /CONTRIBUTING.md | |
| parent | feat(latex): capture left/right math delimiters (diff) | |
| download | nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.gz nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.bz2 nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.lz nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.xz nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.zst nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.zip | |
refactor(queries): Remove quotes from properties in set! directive
Diffstat (limited to 'CONTRIBUTING.md')
| -rw-r--r-- | CONTRIBUTING.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 449cddcbd..23321f0f7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -287,7 +287,7 @@ A conceal can be restricted to part of the capture via the [`#offset!` directive #### Priority Captures can be assigned a priority to control precedence of highlights via the -`#set! "priority" <number>` directive (see `:h treesitter-highlight-priority`). +`#set! priority <number>` directive (see `:h treesitter-highlight-priority`). The default priority for treesitter highlights is `100`; queries should only set priorities between `90` and `120`, to avoid conflict with other sources of highlighting (such as diagnostics or LSP semantic tokens). @@ -336,7 +336,7 @@ doSomething(); // Should point to the declaration as the definition ```query (function_declaration ((identifier) @local.definition.var) - (#set! "definition.var.scope" "parent")) + (#set! definition.var.scope "parent")) ``` Possible scope values are: |
