From 2c0cfda8cdc3fb85d957059c887dc7f762666100 Mon Sep 17 00:00:00 2001 From: kolen Date: Fri, 23 Feb 2024 01:49:09 +0300 Subject: [PATCH] Add some highlighting rules --- queries/highlights.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 queries/highlights.scm diff --git a/queries/highlights.scm b/queries/highlights.scm new file mode 100644 index 0000000..afee1f3 --- /dev/null +++ b/queries/highlights.scm @@ -0,0 +1,15 @@ +(code_comment) @comment +(html_comment) @comment +(attr_name) @attribute +(ruby_block_control "-" @keyword) +(ruby_block_output "=" @keyword) +(ruby_block_output_noescape "==" @keyword) +(doctype) @keyword +":" @punctuation.delimiter +(embedded_engine_name) @function.builtin +(tag_name) @type +(attr_shortcut_class) @function +(attr_shortcut_id) @constant +(attrs ["(" ")" "[" "]" "{" "}"] @punctuation.bracket) +(attr_assignment) @punctuation.delimiter +(attr_assignment_noescape) @punctuation.delimiter