2024-01-28 10:12:07 +01:00
|
|
|
([(comment) (block_comment)] @injection.content
|
2022-01-20 16:50:06 +01:00
|
|
|
(#set! injection.language "comment"))
|
2024-01-28 10:12:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
; 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"))
|
|
|
|
|