mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
chore(luadoc): update parser & highlights
This commit is contained in:
parent
527eb602ff
commit
a938e98cb4
2 changed files with 32 additions and 5 deletions
|
|
@ -351,7 +351,7 @@
|
||||||
"revision": "9668709211b2e683f27f414454a8b51bf0a6bda1"
|
"revision": "9668709211b2e683f27f414454a8b51bf0a6bda1"
|
||||||
},
|
},
|
||||||
"luadoc": {
|
"luadoc": {
|
||||||
"revision": "6ebdac83b4789069c4939713efae7176cc3126de"
|
"revision": "d82b43018a6b22d70b264ed8713be1c4daf9b0e0"
|
||||||
},
|
},
|
||||||
"luap": {
|
"luap": {
|
||||||
"revision": "31461ae9bd0866cb5117cfe5de71189854fd0f3e"
|
"revision": "31461ae9bd0866cb5117cfe5de71189854fd0f3e"
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
"@generic"
|
"@generic"
|
||||||
"@vararg"
|
"@vararg"
|
||||||
"@diagnostic"
|
"@diagnostic"
|
||||||
|
"@cast"
|
||||||
"@deprecated"
|
"@deprecated"
|
||||||
"@meta"
|
"@meta"
|
||||||
"@source"
|
"@source"
|
||||||
|
|
@ -24,6 +25,7 @@
|
||||||
"@enum"
|
"@enum"
|
||||||
"@language"
|
"@language"
|
||||||
"@see"
|
"@see"
|
||||||
|
"@as"
|
||||||
"extends"
|
"extends"
|
||||||
(diagnostic_identifier)
|
(diagnostic_identifier)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
@ -54,9 +56,12 @@
|
||||||
"public"
|
"public"
|
||||||
"protected"
|
"protected"
|
||||||
"private"
|
"private"
|
||||||
|
"package"
|
||||||
"@public"
|
"@public"
|
||||||
"@protected"
|
"@protected"
|
||||||
"@private"
|
"@private"
|
||||||
|
"(exact)"
|
||||||
|
"(key)"
|
||||||
] @type.qualifier
|
] @type.qualifier
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
|
|
@ -93,6 +98,12 @@
|
||||||
.
|
.
|
||||||
(identifier) @variable.member)
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(member_type
|
||||||
|
(identifier) @module)
|
||||||
|
|
||||||
|
(member_type
|
||||||
|
(identifier) @type .)
|
||||||
|
|
||||||
; Types
|
; Types
|
||||||
(table_type
|
(table_type
|
||||||
"table" @type.builtin)
|
"table" @type.builtin)
|
||||||
|
|
@ -115,19 +126,35 @@
|
||||||
(type) @type
|
(type) @type
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
"|" @operator
|
[
|
||||||
|
"|"
|
||||||
|
"+"
|
||||||
|
"-"
|
||||||
|
] @operator
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
(string) @module ; only used in @module
|
[
|
||||||
|
(string)
|
||||||
|
(literal_type)
|
||||||
|
"`"
|
||||||
|
] @string
|
||||||
|
|
||||||
(literal_type) @string
|
(module_annotation
|
||||||
|
(string) @module)
|
||||||
|
|
||||||
(number) @number
|
[
|
||||||
|
(number)
|
||||||
|
(numeric_literal_type)
|
||||||
|
] @number
|
||||||
|
|
||||||
; Punctuation
|
; Punctuation
|
||||||
[
|
[
|
||||||
"["
|
"["
|
||||||
"]"
|
"]"
|
||||||
|
"[["
|
||||||
|
"]]"
|
||||||
|
"[=["
|
||||||
|
"]=]"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue