mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(lua): Add Lua 5.1 built-in functions
This commit is contained in:
parent
6cb760ae36
commit
6558806a20
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue