Skip to content

Commit

Permalink
feat: Add character face (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 authored Jan 8, 2025
1 parent cc12de3 commit fe98d0c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lisp/tree-sitter-hl.el
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@
"Face for special strings, e.g. regular expressions."
:group 'tree-sitter-hl-faces)

(defface tree-sitter-hl-face:character
'((default :inherit font-lock-string-face))
"Face for characters."
:group 'tree-sitter-hl-faces)

(defface tree-sitter-hl-face:character.special
'((default :inherit tree-sitter-hl-face:character :weight bold))
"Face for special characters."
:group 'tree-sitter-hl-faces)

(defface tree-sitter-hl-face:escape
'((default :inherit font-lock-keyword-face))
"Face for escape characters in strings."
Expand Down

0 comments on commit fe98d0c

Please sign in to comment.