mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(formatter): prefer #-prefixed predicates
This prevents the formatter for appending a space after the "." in a predicate prefix, and changes it to a "#" to match all other occurrences in the codebase.
This commit is contained in:
parent
285ec45123
commit
7194ff9511
1 changed files with 3 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ local format_queries = [[
|
|||
":"
|
||||
"."
|
||||
] @format.append-space
|
||||
(predicate
|
||||
"." @format.cancel-append @format.replace
|
||||
(#gsub! @format.replace "%." "#"))
|
||||
(
|
||||
"." @format.prepend-space @format.cancel-append
|
||||
.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue