aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/julia/injections.scm
blob: fd174a4a03b05d5e0bb4404ec054e9cb4587179f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(
  (source_file
    (string_literal) @injection.content
    .
    [
      (module_definition)
      (function_definition)
      (macro_definition)
      (primitive_definition)
      (abstract_definition)
      (struct_definition)
      (assignment_expression)
      (const_statement)
    ])
  (#set! injection.language "markdown"))

(
  [
    (line_comment) 
    (block_comment)
  ] @injection.content
  (#set! injection.language "comment"))

(
  (prefixed_string_literal
    prefix: (identifier) @function.macro) @injection.content
  (#eq? @function.macro "re")
  (#set! injection.language "regex"))

(
  (prefixed_string_literal
    prefix: (identifier) @function.macro) @injection.content
  (#eq? @function.macro "md")
  (#set! injection.language "markdown"))