Restrict tagged template language injections for ecma (#12217)

pull/12407/head
uncenter 2025-01-23 14:45:35 -05:00 committed by GitHub
parent 8f1585a097
commit f70923c448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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