mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
fix(luadoc): @nospell identifiers and keywords
This commit is contained in:
parent
a0f18ee98c
commit
9775d5d7c7
1 changed files with 28 additions and 28 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
[
|
[
|
||||||
"@module"
|
"@module"
|
||||||
"@package"
|
"@package"
|
||||||
] @keyword.import
|
] @keyword.import @nospell
|
||||||
|
|
||||||
[
|
[
|
||||||
"@class"
|
"@class"
|
||||||
|
|
@ -28,28 +28,28 @@
|
||||||
"@as"
|
"@as"
|
||||||
"extends"
|
"extends"
|
||||||
(diagnostic_identifier)
|
(diagnostic_identifier)
|
||||||
] @keyword
|
] @keyword @nospell
|
||||||
|
|
||||||
"@async" @keyword.coroutine
|
"@async" @keyword.coroutine @nospell
|
||||||
|
|
||||||
(language_injection
|
(language_injection
|
||||||
"@language"
|
"@language"
|
||||||
(identifier) @keyword)
|
(identifier) @keyword @nospell)
|
||||||
|
|
||||||
(function_type
|
(function_type
|
||||||
[
|
[
|
||||||
"fun"
|
"fun"
|
||||||
"function"
|
"function"
|
||||||
] @keyword.function)
|
] @keyword.function @nospell)
|
||||||
|
|
||||||
(source_annotation
|
(source_annotation
|
||||||
filename: (identifier) @string.special.path
|
filename: (identifier) @string.special.path @nospell
|
||||||
extension: (identifier) @string.special.path)
|
extension: (identifier) @string.special.path @nospell)
|
||||||
|
|
||||||
(version_annotation
|
(version_annotation
|
||||||
version: _ @constant.builtin)
|
version: _ @constant.builtin @nospell)
|
||||||
|
|
||||||
"@return" @keyword.return
|
"@return" @keyword.return @nospell
|
||||||
|
|
||||||
; Qualifiers
|
; Qualifiers
|
||||||
[
|
[
|
||||||
|
|
@ -62,33 +62,33 @@
|
||||||
"@private"
|
"@private"
|
||||||
"(exact)"
|
"(exact)"
|
||||||
"(key)"
|
"(key)"
|
||||||
] @type.qualifier
|
] @type.qualifier @nospell
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
(identifier) @variable
|
(identifier) @variable @nospell
|
||||||
|
|
||||||
[
|
[
|
||||||
"..."
|
"..."
|
||||||
"self"
|
"self"
|
||||||
] @variable.builtin
|
] @variable.builtin @nospell
|
||||||
|
|
||||||
; Macros
|
; Macros
|
||||||
(alias_annotation
|
(alias_annotation
|
||||||
(identifier) @function.macro)
|
(identifier) @function.macro @nospell)
|
||||||
|
|
||||||
; Parameters
|
; Parameters
|
||||||
(param_annotation
|
(param_annotation
|
||||||
(identifier) @variable.parameter)
|
(identifier) @variable.parameter @nospell)
|
||||||
|
|
||||||
(parameter
|
(parameter
|
||||||
(identifier) @variable.parameter)
|
(identifier) @variable.parameter @nospell)
|
||||||
|
|
||||||
; Fields
|
; Fields
|
||||||
(field_annotation
|
(field_annotation
|
||||||
(identifier) @variable.member)
|
(identifier) @variable.member @nospell)
|
||||||
|
|
||||||
(table_literal_type
|
(table_literal_type
|
||||||
field: (identifier) @variable.member)
|
field: (identifier) @variable.member @nospell)
|
||||||
|
|
||||||
(member_type
|
(member_type
|
||||||
[
|
[
|
||||||
|
|
@ -96,25 +96,25 @@
|
||||||
"."
|
"."
|
||||||
]
|
]
|
||||||
.
|
.
|
||||||
(identifier) @variable.member)
|
(identifier) @variable.member @nospell)
|
||||||
|
|
||||||
(member_type
|
(member_type
|
||||||
(identifier) @module)
|
(identifier) @module @nospell)
|
||||||
|
|
||||||
(member_type
|
(member_type
|
||||||
(identifier) @type .)
|
(identifier) @type @nospell .)
|
||||||
|
|
||||||
; Types
|
; Types
|
||||||
(table_type
|
(table_type
|
||||||
"table" @type.builtin)
|
"table" @type.builtin @nospell)
|
||||||
|
|
||||||
(builtin_type) @type.builtin
|
(builtin_type) @type.builtin @nospell
|
||||||
|
|
||||||
(class_annotation
|
(class_annotation
|
||||||
(identifier) @type)
|
(identifier) @type @nospell)
|
||||||
|
|
||||||
(enum_annotation
|
(enum_annotation
|
||||||
(identifier) @type)
|
(identifier) @type @nospell)
|
||||||
|
|
||||||
((array_type
|
((array_type
|
||||||
[
|
[
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
(module_annotation
|
(module_annotation
|
||||||
(string) @module)
|
(string) @module @nospell)
|
||||||
|
|
||||||
[
|
[
|
||||||
(number)
|
(number)
|
||||||
|
|
@ -188,11 +188,11 @@
|
||||||
(comment) @comment @spell
|
(comment) @comment @spell
|
||||||
|
|
||||||
(at_comment
|
(at_comment
|
||||||
(identifier) @type
|
(identifier) @type @nospell
|
||||||
(_) @comment @spell)
|
(_) @comment @spell)
|
||||||
|
|
||||||
(class_at_comment
|
(class_at_comment
|
||||||
(identifier) @type
|
(identifier) @type @nospell
|
||||||
("extends"?
|
("extends"?
|
||||||
(identifier)? @type)
|
(identifier)? @type @nospell)
|
||||||
(_) @comment @spell)
|
(_) @comment @spell)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue