diff --git a/extensions/html/languages/html/injections.scm b/extensions/html/languages/html/injections.scm index 1c31b2a0a9..0884d8f516 100644 --- a/extensions/html/languages/html/injections.scm +++ b/extensions/html/languages/html/injections.scm @@ -5,3 +5,13 @@ (style_element (raw_text) @injection.content (#set! injection.language "css")) + +(attribute + (attribute_name) @_attribute_name (#match? @_attribute_name "^style$") + (quoted_attribute_value (attribute_value) @injection.content) + (#set! injection.language "css")) + +(attribute + (attribute_name) @_attribute_name (#match? @_attribute_name "^on[a-z]+$") + (quoted_attribute_value (attribute_value) @injection.content) + (#set! injection.language "javascript"))