diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-17 13:10:07 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-19 09:41:16 +0100 |
commit | aca4ad430bdcc6dadc5387ab80e26b4140b42337 (patch) | |
tree | 5944c3d64f6ad6333fcb204aee67ec51182c5d43 /runtime/queries/lua | |
parent | 8dda630ae942dedfe6b5abbfd5c4069a415d055e (diff) | |
download | rneovim-aca4ad430bdcc6dadc5387ab80e26b4140b42337.tar.gz rneovim-aca4ad430bdcc6dadc5387ab80e26b4140b42337.tar.bz2 rneovim-aca4ad430bdcc6dadc5387ab80e26b4140b42337.zip |
feat(treesitter): update Lua parser and queries to v0.1.0
Diffstat (limited to 'runtime/queries/lua')
-rw-r--r-- | runtime/queries/lua/highlights.scm | 14 | ||||
-rw-r--r-- | runtime/queries/lua/injections.scm | 3 |
2 files changed, 8 insertions, 9 deletions
diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm index 0b0bf35a8b..053d8116da 100644 --- a/runtime/queries/lua/highlights.scm +++ b/runtime/queries/lua/highlights.scm @@ -222,16 +222,14 @@ (function_call (identifier) @function.builtin - ; format-ignore (#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" "rawlen" "rawset" "require" "select" "setfenv" "setmetatable" - "tonumber" "tostring" "type" "unpack" "xpcall" - "__add" "__band" "__bnot" "__bor" "__bxor" "__call" "__concat" "__div" "__eq" "__gc" - "__idiv" "__index" "__le" "__len" "__lt" "__metatable" "__mod" "__mul" "__name" "__newindex" - "__pairs" "__pow" "__shl" "__shr" "__sub" "__tostring" "__unm")) + "assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs" "load" "loadfile" + "loadstring" "module" "next" "pairs" "pcall" "print" "rawequal" "rawget" "rawlen" "rawset" + "require" "select" "setfenv" "setmetatable" "tonumber" "tostring" "type" "unpack" "xpcall" + "__add" "__band" "__bnot" "__bor" "__bxor" "__call" "__concat" "__div" "__eq" "__gc" "__idiv" + "__index" "__le" "__len" "__lt" "__metatable" "__mod" "__mul" "__name" "__newindex" "__pairs" + "__pow" "__shl" "__shr" "__sub" "__tostring" "__unm")) ; Others (comment) @comment @spell diff --git a/runtime/queries/lua/injections.scm b/runtime/queries/lua/injections.scm index c8a1843c84..a76f764d76 100644 --- a/runtime/queries/lua/injections.scm +++ b/runtime/queries/lua/injections.scm @@ -20,7 +20,8 @@ (string content: _ @injection.content))) (#set! injection.language "vim") - (#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_command" "vim.api.nvim_exec2")) + (#any-of? @_vimcmd_identifier + "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_command" "vim.api.nvim_exec2")) ((function_call name: (_) @_vimcmd_identifier |