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:
Riley Bruins
2025-02-02 08:58:26 -08:00
committed by Christian Clason
parent 285ec45123
commit 7194ff9511

View File

@@ -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
.