Skip to content

Commit

Permalink
support tree-sitter-hl-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Jun 25, 2023
1 parent 41a062b commit f27b2a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions evil-matchit-sdk.el
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@

(defvar evilmi-ignored-fonts
'(web-mode-html-attr-value-face
tree-sitter-hl-face:string
tree-sitter-hl-face:doc
tree-sitter-hl-face:comment
font-lock-string-face
font-lock-doc-face
font-lock-comment-delimiter-face
font-lock-comment-face)
"Text with ignored fonts has no string keyword.")

Expand Down Expand Up @@ -123,11 +127,13 @@ If font-face-under-cursor is NOT nil, the quoted string is being processed."
(cond
;; @see https://github.com/redguardtoo/evil-matchit/issues/92
((eq major-mode 'tuareg-mode)
(evilmi-sdk-font-p pos '(font-lock-comment-face
(evilmi-sdk-font-p pos '(tree-sitter-hl-face:comment
font-lock-comment-face
font-lock-comment-delimiter-face
font-lock-doc-face)))
(t
(evilmi-sdk-font-p pos '(font-lock-comment-face
(evilmi-sdk-font-p pos '(tree-sitter-hl-face:comment
font-lock-comment-face
font-lock-comment-delimiter-face)))))

(defun evilmi-sdk-defun-p ()
Expand Down
4 changes: 2 additions & 2 deletions evil-matchit.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Author: Chen Bin <chenbin.sh@gmail.com>
;; URL: http://github.com/redguardtoo/evil-matchit
;; Version: 3.0.1
;; Version: 3.0.2
;; Keywords: matchit vim evil
;; Package-Requires: ((emacs "25.1"))
;;
Expand Down Expand Up @@ -325,7 +325,7 @@ If IS-INNER is t, the region is inner text object."
(defun evilmi-version()
"Print version."
(interactive)
(message "3.0.1"))
(message "3.0.2"))

;; initialize evilmi-plugins only once
(evilmi-init-plugins)
Expand Down
2 changes: 1 addition & 1 deletion pkg.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
name=evil-matchit
version=3.0.1
version=3.0.2
pkg=$name-$version
mkdir $pkg
cp README.org $pkg
Expand Down

0 comments on commit f27b2a8

Please sign in to comment.