aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhizhen He <hezhizhen.yi@gmail.com>2023-03-21 13:50:54 +0800
committerAmaan Qureshi <amaanq12@gmail.com>2023-03-21 02:23:52 -0400
commita1df50a79f0e422b3c99680071f32994893f3a3d (patch)
tree82afe9669ff75ef0eb199b597ce7dc00a97469db
parentUpdate parsers: glimmer, sql (diff)
downloadnvim-treesitter-a1df50a79f0e422b3c99680071f32994893f3a3d.tar
nvim-treesitter-a1df50a79f0e422b3c99680071f32994893f3a3d.tar.gz
nvim-treesitter-a1df50a79f0e422b3c99680071f32994893f3a3d.tar.bz2
nvim-treesitter-a1df50a79f0e422b3c99680071f32994893f3a3d.tar.lz
nvim-treesitter-a1df50a79f0e422b3c99680071f32994893f3a3d.tar.xz
nvim-treesitter-a1df50a79f0e422b3c99680071f32994893f3a3d.tar.zst
nvim-treesitter-a1df50a79f0e422b3c99680071f32994893f3a3d.zip
docs: fix typo
-rw-r--r--doc/nvim-treesitter.txt8
-rw-r--r--queries/cue/highlights.scm2
-rw-r--r--queries/solidity/highlights.scm4
-rw-r--r--queries/squirrel/highlights.scm2
-rw-r--r--queries/thrift/highlights.scm2
5 files changed, 9 insertions, 9 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 884f334eb..f05693676 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -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.
==============================================================================
diff --git a/queries/cue/highlights.scm b/queries/cue/highlights.scm
index c1f27fb8f..50137c7b3 100644
--- a/queries/cue/highlights.scm
+++ b/queries/cue/highlights.scm
@@ -155,7 +155,7 @@
(interpolation "\\(" (identifier) @variable ")")
-; Commments
+; Comments
(comment) @comment @spell
diff --git a/queries/solidity/highlights.scm b/queries/solidity/highlights.scm
index 76a623267..eda45836a 100644
--- a/queries/solidity/highlights.scm
+++ b/queries/solidity/highlights.scm
@@ -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"
diff --git a/queries/squirrel/highlights.scm b/queries/squirrel/highlights.scm
index b35c7cbf1..b0b9caf56 100644
--- a/queries/squirrel/highlights.scm
+++ b/queries/squirrel/highlights.scm
@@ -197,7 +197,7 @@
; Thread Methods
"call" "wakeup" "wakeupthrow" "getstackinfos"
- ; Weak Referece Methods
+ ; Weak Reference Methods
"ref" "weakref"
))
diff --git a/queries/thrift/highlights.scm b/queries/thrift/highlights.scm
index 2b4778722..2c963f5bc 100644
--- a/queries/thrift/highlights.scm
+++ b/queries/thrift/highlights.scm
@@ -143,7 +143,7 @@
"xsd_optional"
] @keyword
-; Extended Kewords
+; Extended Keywords
[
"package"
"performs"