Update teal syntax for 0.10

This commit is contained in:
Corey Williamson 2021-01-05 09:33:11 -06:00 committed by Thomas Vigouroux
parent f2c219cddc
commit 32085370b1

View file

@ -37,8 +37,8 @@
(typeargs
"<" @punctuation.bracket
. (identifier) @parameter
. ("," . (identifier) @parameter)*
. (_) @parameter
. ("," . (_) @parameter)*
. ">" @punctuation.bracket)
(function_call
@ -56,10 +56,15 @@
(record_body
(record_entry
. [ "record" "enum" ] @keyword
. key: (identifier) @type)
. key: (identifier) @type))
(record_body
(record_entry
. "type" @keyword
. key: (identifier) @type . "="))
(record_body
(metamethod "metamethod" @keyword))
(record_body
(userdata) @keyword)
(enum_declaration
"enum" @keyword