refactor: manual pre-cleanup

Moving comments, adding `format-ignore` to lines that will be better
with it
This commit is contained in:
Pham Huy Hoang 2024-01-05 03:19:54 +09:00 committed by Christian Clason
parent 15de22a2e1
commit edee83272e
37 changed files with 1656 additions and 1595 deletions

View file

@ -220,8 +220,9 @@
(function_call
(identifier) @function.builtin
; format-ignore
(#any-of? @function.builtin
;; built-in functions in Lua 5.1
; 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"

View file

@ -67,14 +67,15 @@
.
(string
content: (_) @injection.content)
. (_) .) ; Limiting predicate handling to only functions with 4 arguments
. (_)
.) ; Limiting predicate handling to only functions with 4 arguments
(#eq? @_user_cmd "vim.api.nvim_buf_create_user_command")
(#set! injection.language "vim"))
;; rhs highlighting for vim.keymap.set/vim.api.nvim_set_keymap/vim.api.nvim_buf_set_keymap
; (function_call
; name: (_) @_map
; arguments:
; arguments:
; (arguments
; . (_)
; . (_)
@ -86,7 +87,7 @@
;
; (function_call
; name: (_) @_map
; arguments:
; arguments:
; (arguments
; . (_)
; . (_)