diff options
| author | tami5 <65782666+tami5@users.noreply.github.com> | 2021-06-20 21:20:50 +0300 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-06-21 08:52:38 +0200 |
| commit | 89b1254cde93f7cc590ea9d0591f0317f8cbd106 (patch) | |
| tree | 93df81ae1b83f1cf1e847a42a8998dc41aa1b70a /queries/rust | |
| parent | d1f6a2a3d8372725e777e96740bfdf0cde7eb2c8 (diff) | |
rust: inject html to html! macro
Diffstat (limited to 'queries/rust')
| -rw-r--r-- | queries/rust/injections.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/rust/injections.scm b/queries/rust/injections.scm index b1e90e09..bd88b7e3 100644 --- a/queries/rust/injections.scm +++ b/queries/rust/injections.scm @@ -10,3 +10,12 @@ (line_comment) (block_comment) ] @comment + +( + (macro_invocation + macro: ((identifier) @_html_def) + (token_tree) @html) + + (#eq? @_html_def "html") +) + |
