on febee2d help sign in
20 lines 523 B history raw
1; Parse the contents of tagged template literals using
2; a language inferred from the tag.
4(call_expression
5 function: [
6 (identifier) @injection.language
7 (member_expression
8 property: (property_identifier) @injection.language)
9 ]
10 arguments: (template_string) @injection.content)
12; Parse regex syntax within regex literals
14((regex_pattern) @injection.content
15 (#set! injection.language "regex"))
17 ; Parse JSDoc annotations in comments
19((comment) @injection.content
20 (#set! injection.language "jsdoc"))