Skip to content

Commit

Permalink
indents(css, make): add basic queries
Browse files Browse the repository at this point in the history
* Despite the fact that queries look simple, they improve indentation in some edge cases that helix couldn't handle correctly by default.
  • Loading branch information
woojiq committed Jan 21, 2024
1 parent 959dbfc commit 731dc49
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/queries/css/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
(block)
] @indent

[
"}"
] @outdent
8 changes: 8 additions & 0 deletions runtime/queries/make/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
(define_directive)
(rule)
] @indent

[
"endef"
] @outdent

0 comments on commit 731dc49

Please sign in to comment.