Skip to content

Commit

Permalink
Restrict tagged template language injections for ecma (#12217)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Jan 23, 2025
1 parent 8f1585a commit f70923c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/queries/ecma/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
(member_expression
property: (property_identifier) @injection.language)
]
arguments: (template_string) @injection.content)
arguments: (template_string) @injection.content
(#any-of? @injection.language "html" "css" "json" "sql" "js" "ts" "bash"))

; Parse the contents of gql template literals

Expand Down

0 comments on commit f70923c

Please sign in to comment.