diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-02-19 16:49:04 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-19 17:45:54 +0100 |
| commit | 9bc21966f27d48ab8eac4c42d5b130ef6c411304 (patch) | |
| tree | b2d7ec232cafeecbfe121bfce5c988a56d4d1670 | |
| parent | feat(svelte)!: switch upstream parser (diff) | |
| download | nvim-treesitter-9bc21966f27d48ab8eac4c42d5b130ef6c411304.tar nvim-treesitter-9bc21966f27d48ab8eac4c42d5b130ef6c411304.tar.gz nvim-treesitter-9bc21966f27d48ab8eac4c42d5b130ef6c411304.tar.bz2 nvim-treesitter-9bc21966f27d48ab8eac4c42d5b130ef6c411304.tar.lz nvim-treesitter-9bc21966f27d48ab8eac4c42d5b130ef6c411304.tar.xz nvim-treesitter-9bc21966f27d48ab8eac4c42d5b130ef6c411304.tar.zst nvim-treesitter-9bc21966f27d48ab8eac4c42d5b130ef6c411304.zip | |
fix: typos
| -rw-r--r-- | lua/nvim-treesitter/indent.lua | 4 | ||||
| -rw-r--r-- | queries/apex/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/markdown/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/nim/injections.scm | 2 | ||||
| -rw-r--r-- | queries/rbs/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/squirrel/injections.scm | 2 | ||||
| -rwxr-xr-x | scripts/format-queries.lua | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/lua/nvim-treesitter/indent.lua b/lua/nvim-treesitter/indent.lua index 18d239571..a9e5e6cee 100644 --- a/lua/nvim-treesitter/indent.lua +++ b/lua/nvim-treesitter/indent.lua @@ -249,9 +249,9 @@ function M.get_indent(lnum) if is_in_err and not q["indent.align"][node:id()] then -- only when the node is in error, promote the -- first child's aligned indent to the error node - -- to work around ((ERROR "X" . (_)) @aligned_indent (#set! "delimeter" "AB")) + -- to work around ((ERROR "X" . (_)) @aligned_indent (#set! "delimiter" "AB")) -- matching for all X, instead set do - -- (ERROR "X" @aligned_indent (#set! "delimeter" "AB") . (_)) + -- (ERROR "X" @aligned_indent (#set! "delimiter" "AB") . (_)) -- and we will fish it out here. for c in node:iter_children() do if q["indent.align"][c:id()] then diff --git a/queries/apex/highlights.scm b/queries/apex/highlights.scm index ef264064d..2d1859688 100644 --- a/queries/apex/highlights.scm +++ b/queries/apex/highlights.scm @@ -17,7 +17,7 @@ ";" ] @punctuation.delimiter -; Default general color defination +; Default general color definition (identifier) @variable (type_identifier) @type diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm index 7c26fd710..e4d375b54 100644 --- a/queries/markdown/highlights.scm +++ b/queries/markdown/highlights.scm @@ -79,7 +79,7 @@ ; NOTE: The following has been commented out due to issues with spaces in the ; list marker nodes generated by the parser. If those spaces ever get captured -; by a different node (e.g. block_continuation) we can safely readd these +; by a different node (e.g. block_continuation) we can safely re-add these ; conceals. ; ;; Conceal bullet points ; ([(list_marker_plus) (list_marker_star)] diff --git a/queries/nim/injections.scm b/queries/nim/injections.scm index 776d36e3a..2b3f0a990 100644 --- a/queries/nim/injections.scm +++ b/queries/nim/injections.scm @@ -26,7 +26,7 @@ (#eq? @_string_prefix "&")) ; sql in generalized_strings -; and anyhting you like as long as the function name is the same as the injected language's parser +; and anything you like as long as the function name is the same as the injected language's parser (generalized_string function: (identifier) @injection.language (string_content) @injection.content diff --git a/queries/rbs/highlights.scm b/queries/rbs/highlights.scm index a40b5957b..11dbf7c2c 100644 --- a/queries/rbs/highlights.scm +++ b/queries/rbs/highlights.scm @@ -5,7 +5,7 @@ (simple_type_name) ] @type) -; Buitin constants and Keywords +; Builtin constants and Keywords [ "true" "false" diff --git a/queries/squirrel/injections.scm b/queries/squirrel/injections.scm index ee864ca6f..578a9eeca 100644 --- a/queries/squirrel/injections.scm +++ b/queries/squirrel/injections.scm @@ -8,5 +8,5 @@ ((verbatim_string) @injection.content (#lua-match? @injection.content "@\"<!DOCTYPE html>") - (#set! injection.languge "html") + (#set! injection.language "html") (#offset! @injection.content 0 2 0 -1)) diff --git a/scripts/format-queries.lua b/scripts/format-queries.lua index ab136d671..ab7aa237b 100755 --- a/scripts/format-queries.lua +++ b/scripts/format-queries.lua @@ -189,7 +189,7 @@ local format_queries = [[ (anonymous_node (identifier) @format.keep) (field_definition name: (_) - ":" @format.indent.begin @format.append-newline ; surpress trailing whitespaces with forced newlines + ":" @format.indent.begin @format.append-newline ; suppress trailing whitespaces with forced newlines [ (named_node [ (named_node) (list) (grouping) (anonymous_node) (field_definition) ]) (list "[" . (_) . (_) "]") |
