Skip to content

Commit

Permalink
Bump Spade grammar and add special comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoq2 committed Oct 31, 2024
1 parent 7ef28ee commit 51f538c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3885,4 +3885,4 @@ indent = { tab-width = 4, unit = " " }

[[grammar]]
name = "spade"
source = { git = "https://gitlab.com/spade-lang/tree-sitter-spade/", rev = "fb59c466c61577eca4637de3d63722b0b75e51ea" }
source = { git = "https://gitlab.com/spade-lang/tree-sitter-spade/", rev = "4d5b141017c61fe7e168e0a5c5721ee62b0d9572" }
7 changes: 7 additions & 0 deletions runtime/queries/spade/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"fn"
"reg"
"reset"
"initial"
"inst"
"assert"
"struct"
Expand All @@ -47,6 +48,7 @@
"decl"
"mod"
"where"
"trait"
] @keyword

[
Expand Down Expand Up @@ -108,8 +110,13 @@

[
(line_comment)
(block_comment)
] @comment

[
(doc_comment)
] @comment.block.documentation


((identifier) @type
(#match? @type "[A-Z]"))
Expand Down

0 comments on commit 51f538c

Please sign in to comment.