Skip to content

Commit

Permalink
Add some highlighting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kolen committed Feb 22, 2024
1 parent d049781 commit 2c0cfda
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2c0cfda

Please sign in to comment.