2022-08-22 18:13:21 +02:00
|
|
|
(
|
2022-08-24 08:56:42 +02:00
|
|
|
(source_file
|
2022-08-24 17:25:36 +02:00
|
|
|
(string_literal) @injection.content
|
|
|
|
.
|
|
|
|
[
|
|
|
|
(module_definition)
|
|
|
|
(function_definition)
|
|
|
|
(macro_definition)
|
|
|
|
(primitive_definition)
|
|
|
|
(abstract_definition)
|
|
|
|
(struct_definition)
|
|
|
|
(assignment_expression)
|
|
|
|
(const_statement)
|
|
|
|
])
|
2022-08-22 18:13:21 +02:00
|
|
|
(#set! injection.language "markdown"))
|
2021-07-04 14:24:33 +02:00
|
|
|
|
2022-08-22 18:13:21 +02:00
|
|
|
(
|
|
|
|
[
|
|
|
|
(line_comment)
|
|
|
|
(block_comment)
|
|
|
|
] @injection.content
|
|
|
|
(#set! injection.language "comment"))
|
2022-08-22 14:22:48 +02:00
|
|
|
|
2022-08-22 18:13:21 +02:00
|
|
|
(
|
|
|
|
(prefixed_string_literal
|
|
|
|
prefix: (identifier) @function.macro) @injection.content
|
|
|
|
(#eq? @function.macro "re")
|
|
|
|
(#set! injection.language "regex"))
|
2023-03-31 03:32:27 +02:00
|
|
|
|
|
|
|
(
|
|
|
|
(prefixed_string_literal
|
|
|
|
prefix: (identifier) @function.macro) @injection.content
|
|
|
|
(#eq? @function.macro "md")
|
|
|
|
(#set! injection.language "markdown"))
|