Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Add make, increase priority
Browse files Browse the repository at this point in the history
  • Loading branch information
p00f committed Sep 3, 2022
1 parent 20cc17b commit c641e22
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/rainbow/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ local function update_range(bufnr, changes, tree, lang)
{
regtype = "b",
inclusive = true,
priority = 120,
priority = 210,
}
)
else
Expand All @@ -103,7 +103,7 @@ local function update_range(bufnr, changes, tree, lang)
{ endRow, endCol - 1 },
"blockwise",
true,
120
210
)
end
end
Expand Down
6 changes: 6 additions & 0 deletions lua/rainbow/levels.lua
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,10 @@ return {
commonlisp = {
list_lit = true,
},
make = {
command_substitution = true,
function_call = true,
substitution_reference = true,
variable_reference = true,
}
}
11 changes: 11 additions & 0 deletions queries/make/parens.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
; inherits round, curly
(function_call ")" @right)
(function_call "(" @left)


(substitution_reference ")" @right)
(substitution_reference "(" @left)


(variable_reference ")" @right)
(variable_reference "(" @left)

0 comments on commit c641e22

Please sign in to comment.