mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
chore: fix typos
This commit is contained in:
parent
968621dfad
commit
6a4fdb317d
15 changed files with 20 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
; Variables
|
||||
(identifier) @variable
|
||||
|
||||
; Reset highlighing in f-string interpolations
|
||||
; Reset highlighting in f-string interpolations
|
||||
(interpolation) @none
|
||||
|
||||
;; Identifier naming conventions
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
;;; Programm structure
|
||||
;;; Program structure
|
||||
(module) @scope
|
||||
|
||||
(class_definition
|
||||
|
|
|
|||
|
|
@ -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]"))
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@
|
|||
"|"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Delimeters
|
||||
; Delimiters
|
||||
[
|
||||
";"
|
||||
"."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue