summaryrefslogtreecommitdiff
path: root/queries/latex/injections.scm
blob: e68c6d938158eea2b2219a891c49730300b09505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[
 (line_comment)
 (block_comment)
 (comment_environment)
] @comment

(pycode_environment
  code: (source_code) @python
)

(minted_environment
  (begin
    language: (curly_group_text
               (text) @language))
  (source_code) @content)

((generic_environment
  (begin
   name: (curly_group_text
           (text) @_env))) @c
   (#any-of? @_env "asy" "asydef"))