mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
Update teal syntax for 0.10
This commit is contained in:
parent
f2c219cddc
commit
32085370b1
1 changed files with 8 additions and 3 deletions
|
|
@ -37,8 +37,8 @@
|
||||||
|
|
||||||
(typeargs
|
(typeargs
|
||||||
"<" @punctuation.bracket
|
"<" @punctuation.bracket
|
||||||
. (identifier) @parameter
|
. (_) @parameter
|
||||||
. ("," . (identifier) @parameter)*
|
. ("," . (_) @parameter)*
|
||||||
. ">" @punctuation.bracket)
|
. ">" @punctuation.bracket)
|
||||||
|
|
||||||
(function_call
|
(function_call
|
||||||
|
|
@ -56,10 +56,15 @@
|
||||||
(record_body
|
(record_body
|
||||||
(record_entry
|
(record_entry
|
||||||
. [ "record" "enum" ] @keyword
|
. [ "record" "enum" ] @keyword
|
||||||
. key: (identifier) @type)
|
. key: (identifier) @type))
|
||||||
|
(record_body
|
||||||
(record_entry
|
(record_entry
|
||||||
. "type" @keyword
|
. "type" @keyword
|
||||||
. key: (identifier) @type . "="))
|
. key: (identifier) @type . "="))
|
||||||
|
(record_body
|
||||||
|
(metamethod "metamethod" @keyword))
|
||||||
|
(record_body
|
||||||
|
(userdata) @keyword)
|
||||||
|
|
||||||
(enum_declaration
|
(enum_declaration
|
||||||
"enum" @keyword
|
"enum" @keyword
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue