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 (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