highlights(lua): Add Lua 5.1 built-in functions

This commit is contained in:
Sergio Alejandro Vargas 2021-08-29 14:53:52 -05:00 committed by Thomas Vigouroux
parent e46b2545b0
commit a5f62c5764

View file

@ -141,6 +141,15 @@
(field_expression (property_identifier) @function)]
. (arguments))
(function_call
(identifier) @function.builtin
(#any-of? @function.builtin
;; built-in functions in Lua 5.1
"assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs"
"load" "loadfile" "loadstring" "module" "next" "pairs" "pcall" "print"
"rawequal" "rawget" "rawset" "require" "select" "setfenv" "setmetatable"
"tonumber" "tostring" "type" "unpack" "xpcall"))
;; Parameters
(parameters
(identifier) @parameter)