diff options
Diffstat (limited to 'runtime/queries/html')
-rw-r--r-- | runtime/queries/html/highlights.scm | 12 | ||||
-rw-r--r-- | runtime/queries/html/injections.scm | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/runtime/queries/html/highlights.scm b/runtime/queries/html/highlights.scm new file mode 100644 index 00000000..2c70a9c3 --- /dev/null +++ b/runtime/queries/html/highlights.scm @@ -0,0 +1,12 @@ +(tag_name) @tag +(erroneous_end_tag_name) @tag.error +(doctype) @constant +(attribute_name) @attribute +(attribute_value) @string +(comment) @comment + +[ + "<" + ">" + "</" +] @punctuation.bracket diff --git a/runtime/queries/html/injections.scm b/runtime/queries/html/injections.scm new file mode 100644 index 00000000..71e7c3ae --- /dev/null +++ b/runtime/queries/html/injections.scm @@ -0,0 +1,7 @@ +((script_element + (raw_text) @injection.content) + (#set! injection.language "javascript")) + +((style_element + (raw_text) @injection.content) + (#set! injection.language "css")) |