chore(luadoc): update parser & highlights

This commit is contained in:
Amaan Qureshi 2024-01-24 01:05:42 -05:00
parent 527eb602ff
commit a938e98cb4
2 changed files with 32 additions and 5 deletions

View file

@ -351,7 +351,7 @@
"revision": "9668709211b2e683f27f414454a8b51bf0a6bda1"
},
"luadoc": {
"revision": "6ebdac83b4789069c4939713efae7176cc3126de"
"revision": "d82b43018a6b22d70b264ed8713be1c4daf9b0e0"
},
"luap": {
"revision": "31461ae9bd0866cb5117cfe5de71189854fd0f3e"

View file

@ -13,6 +13,7 @@
"@generic"
"@vararg"
"@diagnostic"
"@cast"
"@deprecated"
"@meta"
"@source"
@ -24,6 +25,7 @@
"@enum"
"@language"
"@see"
"@as"
"extends"
(diagnostic_identifier)
] @keyword
@ -54,9 +56,12 @@
"public"
"protected"
"private"
"package"
"@public"
"@protected"
"@private"
"(exact)"
"(key)"
] @type.qualifier
; Variables
@ -93,6 +98,12 @@
.
(identifier) @variable.member)
(member_type
(identifier) @module)
(member_type
(identifier) @type .)
; Types
(table_type
"table" @type.builtin)
@ -115,19 +126,35 @@
(type) @type
; Operators
"|" @operator
[
"|"
"+"
"-"
] @operator
; 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.bracket
[