Skip to content

Commit

Permalink
Add formatting for set add
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Jul 14, 2024
1 parent f71415a commit 99df616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions corpus/basic.spicy
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ a /= "";
*spicy::getenv("FOO");
*spicy::getenv("FOO");

add xs[1];
delete xs[1];
1 change: 1 addition & 0 deletions corpus/basic.spicy.expected
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ a /= "";
*spicy::getenv("FOO");
*spicy::getenv("FOO");

add xs[1];
delete xs[1];
6 changes: 5 additions & 1 deletion src/query.scm
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,12 @@
(":" @prepend_space @append_space (_))?
)

; Set operations
(set_add
"add" @append_space
)
(delete
(_) @prepend_space
"delete" @append_space
)

[
Expand Down

0 comments on commit 99df616

Please sign in to comment.