aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/scala/injections.scm
blob: 1ad68557e2fedc38fff7a756f71cd31fd6c7482d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
([(comment) (block_comment)] @injection.content
 (#set! injection.language "comment"))


; TODO for some reason multiline string (triple quotes) interpolation works only if it contains interpolated value
; Matches these SQL interpolators:
;  - Doobie: 'sql', 'fr'
;  - Quill: 'sql', 'infix'
;  - Slick: 'sql', 'sqlu'
(interpolated_string_expression 
  interpolator: 
    ((identifier) @interpolator 
     (#any-of? @interpolator "fr" "infix" "sql" "sqlu"))
  (interpolated_string) @injection.content
  (#set! injection.language "sql"))