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 Stephan Seitz
parent 6cb760ae36
commit 6558806a20

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)