mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
951b454a33
Update julia parser to latest version, along with: - updating the queries, - pulling changes from `nvim-treesitter`’s queries (as the maintainters of the parser update the queries there), - reversing the queries’ order to be compatible with upstream.
43 lines
904 B
Scheme
43 lines
904 B
Scheme
(
|
|
(source_file
|
|
(string_literal) @injection.content
|
|
.
|
|
[
|
|
(module_definition)
|
|
(function_definition)
|
|
(macro_definition)
|
|
(primitive_definition)
|
|
(abstract_definition)
|
|
(struct_definition)
|
|
(short_function_definition)
|
|
(assignment)
|
|
(const_statement)
|
|
])
|
|
(#set! injection.language "markdown"))
|
|
|
|
(
|
|
[
|
|
(line_comment)
|
|
(block_comment)
|
|
] @injection.content
|
|
(#set! injection.language "comment"))
|
|
|
|
(
|
|
[
|
|
(command_literal)
|
|
(prefixed_command_literal)
|
|
] @injection.content
|
|
(#set! injection.language "sh"))
|
|
|
|
(
|
|
(prefixed_string_literal
|
|
prefix: (identifier) @function.macro) @injection.content
|
|
(#eq? @function.macro "r")
|
|
(#set! injection.language "regex"))
|
|
|
|
(
|
|
(prefixed_string_literal
|
|
prefix: (identifier) @function.macro) @injection.content
|
|
(#eq? @function.macro "md")
|
|
(#set! injection.language "markdown"))
|