; Parse the contents of tagged template literals using
; a language inferred from the tag.

(call_expression
  (identifier) @injection.language
  (template_string) @injection.content) @injection.site

(call_expression
  (member_expression
    (property_identifier) @injection.language)
  (template_string) @injection.content) @injection.site

((regex
  (regex_pattern) @injection.content) @injection.site
 (set! injection.language "regex"))

; Parse the contents of tagged template literals using
; a language inferred from the tag.

(call_expression
  (identifier) @injection.language
  (template_string) @injection.content)

(call_expression
  (member_expression
    (property_identifier) @injection.language)
  (template_string) @injection.content)

; Parse regex syntax within regex literals

((regex_pattern) @injection.content
 (set! injection.language "regex"))

Update injection query for new TS highlight API
Update injection query for new TS highlight API

Refs tree-sitter/tree-sitter#526
