mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
537 B
Scheme
17 lines
537 B
Scheme
([(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"))
|
|
|