Skip to content

Commit

Permalink
Bump Spade grammar (#12583)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoq2 authored Jan 18, 2025
1 parent 076d8bd commit 954c97f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3967,7 +3967,7 @@ indent = { tab-width = 4, unit = " " }

[[grammar]]
name = "spade"
source = { git = "https://gitlab.com/spade-lang/tree-sitter-spade", rev = "4d5b141017c61fe7e168e0a5c5721ee62b0d9572" }
source = { git = "https://gitlab.com/spade-lang/tree-sitter-spade", rev = "78bf09a88fc1d396f66b69879f908fc6bd2e6934" }

[[language]]
name = "amber"
Expand Down
8 changes: 3 additions & 5 deletions runtime/queries/spade/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@
] @keyword.import

[
"$if"
"$else"
"$config"
"gen"
] @keyword.directive

((comptime_if ["{" "}"] @keyword.directive))
((comptime_else ["{" "}"] @keyword.directive))
((gen_if_expression ["if" "else"] @keyword.directive))
((naked_gen_if_expression ["if" "else"] @keyword.directive))

((attribute) ["#" "[" "]"] @punctuation.delimiter)

Expand Down

0 comments on commit 954c97f

Please sign in to comment.