diff options
| author | Sergio Alejandro Vargas <savargasqu+git@unal.edu.co> | 2021-08-29 14:53:52 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-09-01 07:07:16 +0200 |
| commit | a5f62c57645ca62b9261a1d0b2151dfcf23fcc05 (patch) | |
| tree | 7357a412c51faa2e6552567788a828f52e979367 /queries/lua/highlights.scm | |
| parent | e46b2545b054df0e20aabec3f7bdc2b73f3cfa62 (diff) | |
highlights(lua): Add Lua 5.1 built-in functions
Diffstat (limited to 'queries/lua/highlights.scm')
| -rw-r--r-- | queries/lua/highlights.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 1bcbb358..842ed64d 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -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) |
