Compare commits

...

1 Commits

Author SHA1 Message Date
Thorsten Ball
e002222b5e rust: Add tucan injections to Rust 2024-11-09 17:57:54 +01:00

View File

@@ -5,3 +5,14 @@
(macro_rule
(token_tree) @content
(#set! "language" "rust"))
;; Inject the tucan grammar into Rust strings that are bound to `let tucan =`
((let_declaration
pattern: (identifier) @_new
(#eq? @_new "tucan")
value: [(raw_string_literal
(string_content) @content)
(string_literal
(string_content) @content)])
(#set! "language" "tucan"))