mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
refactor: manual pre-cleanup
Moving comments, adding `format-ignore` to lines that will be better with it
This commit is contained in:
parent
15de22a2e1
commit
edee83272e
37 changed files with 1656 additions and 1595 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
; . (_)
|
||||
; . (_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue