We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 280900a commit 45d0c88Copy full SHA for 45d0c88
after/queries/julia/injections.scm
@@ -1,5 +1,16 @@
1
;; extends
2
3
+;; Match a prefixed string literal and capture the prefix and content.
4
+((prefixed_string_literal
5
+ ;; Capture the prefix identifier and assign it to @prefix.
6
+ prefix: (identifier) @prefix)
7
+ ;; Capture the entire string content and assign it to @injection.content.
8
+ @injection.content
9
+ ;; Check if the captured prefix is "md".
10
+ (#eq? @prefix "md")
11
+ ;; If the prefix is "md", set the injection language to "markdown".
12
+ (#set! injection.language "markdown"))
13
+
14
;; Inject Bash syntax highlighting into command_literal nodes.
15
((command_literal) @injection.content
16
(#set! injection.language "bash"))
0 commit comments