mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
docs: fix typo
This commit is contained in:
parent
2e85a7f4f3
commit
a1df50a79f
5 changed files with 9 additions and 9 deletions
|
|
@ -325,9 +325,9 @@ These highlight groups are used by default:
|
|||
:TSEditQuery {query-group} [{lang}]~
|
||||
|
||||
Edit the query file for a {query-group} (e.g. highlights, locals) for given
|
||||
{lang}. If there are multiple the user is prompted to select one of them.
|
||||
{lang}. If there are multiple files, the user is prompted to select one of them.
|
||||
If no such file exists, a buffer for a new file in the user's config directory
|
||||
is created. If {lang} is not specified, the language of the current buffer
|
||||
is created. If {lang} is not specified, the language of the current buffer
|
||||
is used.
|
||||
|
||||
*:TSEditQueryUserAfter*
|
||||
|
|
@ -454,7 +454,7 @@ Default options (lua syntax):
|
|||
the beginning.
|
||||
- `type_patterns` - Which node type patterns to match.
|
||||
- `transform_fn` - Function used to transform the single item in line. By
|
||||
default removes opening brackets and spaces from end. Takes two arguments:
|
||||
default it removes opening brackets and spaces from end. Takes two arguments:
|
||||
the text of the line in question, and the corresponding treesitter node.
|
||||
- `separator` - Separator between nodes.
|
||||
- `allow_duplicates` - Whether or not to remove duplicate components.
|
||||
|
|
@ -471,7 +471,7 @@ To use it: >
|
|||
This will respect your 'foldminlines' and 'foldnestmax' settings.
|
||||
|
||||
Note: This is highly experimental, and folding can break on some types of
|
||||
edits. If you encounter such breakage, hiting `zx` should fix folding.
|
||||
edits. If you encounter such breakage, hitting `zx` should fix folding.
|
||||
In any case, feel free to open an issue with the reproducing steps.
|
||||
|
||||
==============================================================================
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@
|
|||
|
||||
(interpolation "\\(" (identifier) @variable ")")
|
||||
|
||||
; Commments
|
||||
; Comments
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
(call_expression . (identifier) @function.call)
|
||||
|
||||
; Function parameters
|
||||
(event_paramater name: (identifier) @parameter)
|
||||
(event_parameter name: (identifier) @parameter)
|
||||
(parameter name: (identifier) @parameter)
|
||||
|
||||
; Yul functions
|
||||
|
|
@ -113,7 +113,7 @@
|
|||
; FIXME: update grammar
|
||||
; (block_statement "unchecked" @keyword)
|
||||
|
||||
(event_paramater "indexed" @keyword)
|
||||
(event_parameter "indexed" @keyword)
|
||||
|
||||
[
|
||||
"public"
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@
|
|||
; Thread Methods
|
||||
"call" "wakeup" "wakeupthrow" "getstackinfos"
|
||||
|
||||
; Weak Referece Methods
|
||||
; Weak Reference Methods
|
||||
"ref" "weakref"
|
||||
))
|
||||
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@
|
|||
"xsd_optional"
|
||||
] @keyword
|
||||
|
||||
; Extended Kewords
|
||||
; Extended Keywords
|
||||
[
|
||||
"package"
|
||||
"performs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue