chore: fix typos

This commit is contained in:
Dundar Göc
2021-11-01 22:35:31 +01:00
committed by Stephan Seitz
parent 968621dfad
commit 6a4fdb317d
15 changed files with 20 additions and 20 deletions

View File

@@ -7,6 +7,6 @@ assignees: ''
---
**Language informations**
**Language information**
Please paste any useful informations here !
Please paste any useful information here !

View File

@@ -5,7 +5,7 @@ First of all, thank you very much for contributing to `nvim-treesitter`.
If you haven't already, you should really come and reach out to us on our [gitter](https://gitter.im/nvim-treesitter/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
room, so we can help you with any question you might have!
As you know, `nvim-treesitter` is roughly splitted in two parts :
As you know, `nvim-treesitter` is roughly split in two parts :
- Parser configurations : for various things like `locals`, `highlights`
- What we like to call *modules* : tiny lua modules that provide a given feature, based on parser configurations

View File

@@ -361,7 +361,7 @@ EOF
## Adding queries
Queries are what `nvim-treesitter` uses to extract informations from the syntax tree; they are
Queries are what `nvim-treesitter` uses to extract information from the syntax tree; they are
located in the `queries/{language}/*` runtime directories (like the `queries` folder of this plugin), e.g., `queries/{language}/{locals,highlights,textobjects}.scm`.
Other modules may require additional queries such as `folding.scm`.

View File

@@ -17,7 +17,7 @@ Authors:
==============================================================================
INTRODUCTION *nvim-treesitter-intro*
nvim-treesitter wraps the Neovim treesitter API to provide functionnalities
nvim-treesitter wraps the Neovim treesitter API to provide functionalities
such as highlighting and incremental selection, and a command to easily
install parsers.
@@ -205,7 +205,7 @@ Perform the |:TSInstall| operation synchronously.
*:TSInstallInfo*
:TSInstallInfo~
List informations about currently installed parsers
List information about currently installed parsers
*:TSUpdate*
:TSUpdate {language} ...~

View File

@@ -79,7 +79,7 @@ local folds_levels = tsutils.memoize_by_buf_tick(function(bufnr)
-- ( \n ( \n )) \n (( \n ) \n )
-- versus
-- ( \n ( \n ) \n ( \n ) \n )
-- If it did have such a mechansim, (trimmed_level - last_trimmed_level)
-- If it did have such a mechanism, (trimmed_level - last_trimmed_level)
-- would be the correct number of starts to pass on.
if trimmed_level - last_trimmed_level > 0 then
prefix = ">"

View File

@@ -177,7 +177,7 @@ end)
--
-- "parent": Uses the parent of the containing scope, basically, skipping a scope
-- "global": Uses the top most scope
-- "local": Uses the containg scope of the definition. This is the default
-- "local": Uses the containing scope of the definition. This is the default
--
-- @param node: the definition node
-- @param bufnr: the buffer

View File

@@ -99,7 +99,7 @@ query.add_predicate("has-type?", function(match, pattern, bufnr, pred)
return vim.tbl_contains(types, node:type())
end)
-- Just avoid some anoying warnings for this directive
-- Just avoid some annoying warnings for this directive
query.add_directive("make-range!", function() end)
query.add_directive("downcase!", function(match, _, bufnr, pred, metadata)

View File

@@ -11,7 +11,7 @@
;; have multiple highlight groups applied to them.
;; >> Litterals
;; >> Literals
(
(dis_expr) @comment
@@ -292,7 +292,7 @@
.
(_))
; Funciton definitions
; Function definitions
(list_lit
.
(sym_lit) @_keyword.function

View File

@@ -6,7 +6,7 @@
(identifier) @definition.parameter))
(optional_parameter_declaration
declarator: (identifier) @definition.parameter)
;; Class / struct defintions
;; Class / struct definitions
(class_specifier) @scope
(reference_declarator
@@ -42,7 +42,7 @@
((namespace_identifier) @reference
(set! reference.kind "namespace"))
;; Function defintions
;; Function definitions
(template_function
name: (identifier) @definition.function) @scope

View File

@@ -30,7 +30,7 @@
; == Mustache Statements ===
; Hightlight the whole statement, to color brackets and separators
; Highlight the whole statement, to color brackets and separators
(mustache_statement) @tag.delimiter
; An identifier in a mustache expression is a variable

View File

@@ -66,7 +66,7 @@
(quote_expression
(identifier)) @symbol
;; Parsing error! foo (::Type) get's parsed as two quote expressions
;; Parsing error! foo (::Type) gets parsed as two quote expressions
(argument_list
(quote_expression
(quote_expression

View File

@@ -4,7 +4,7 @@
; Variables
(identifier) @variable
; Reset highlighing in f-string interpolations
; Reset highlighting in f-string interpolations
(interpolation) @none
;; Identifier naming conventions

View File

@@ -1,4 +1,4 @@
;;; Programm structure
;;; Program structure
(module) @scope
(class_definition

View File

@@ -12,9 +12,9 @@
; Assume other uppercase names constants.
; NOTE: In order to distinguish constants we highlight
; all the identifiers that are uppercased. But this solution
; is not suitable for all occurences e.g. it will highlight
; is not suitable for all occurrences e.g. it will highlight
; an uppercased method as a constant if used with no params.
; Introducing highlightning for those specific cases, is probably
; Introducing highlighting for those specific cases, is probably
; best way to resolve the issue.
((identifier) @constant (#match? @constant "^[A-Z]"))

View File

@@ -83,7 +83,7 @@
"|"
] @punctuation.bracket
; Delimeters
; Delimiters
[
";"
"."