Skip to content

Commit

Permalink
increase priority of unquote ($)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuviman committed Dec 7, 2024
1 parent 3a24495 commit 2aecd28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/syntax.ks
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ syntax_module {
syntax @"builtin macro call_macro" <- 150 = @"macro" "!!" arg;

syntax @"builtin macro quote" -> 200 = "`" "(" expr ")";
syntax @"builtin macro unquote" -> 200 = "$" expr;
syntax @"builtin macro unquote" -> 200 = "$" "(" expr ")";

#syntax @"builtin macro variant" <- 250 = type ":" name value;
#syntax @"builtin macro variant" <- 250 = type ":" name;
syntax @"builtin macro variant" <- 250 = ":" name value;
Expand All @@ -153,6 +150,9 @@ syntax_module {
syntax @"builtin macro unwindable" <- 500 = "unwindable" name body;
syntax @"builtin macro unwind" <- 500 = "unwind" name value;

syntax @"builtin macro unquote" -> 500 = "$" expr;
syntax @"builtin macro unquote" -> 500 = "$" "(" expr ")";

syntax let_infer <- 500 = "_let" pattern;

# syntax @"builtin macro function_def" <- 100000 = "{" body "}";
Expand Down

0 comments on commit 2aecd28

Please sign in to comment.