Skip to content

Commit

Permalink
Skip regions we already colorized
Browse files Browse the repository at this point in the history
  • Loading branch information
Hi-Angel committed Jan 22, 2023
1 parent 9e4d1cc commit 9393a14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions color-identifiers-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,7 @@ evaluates to true."
(if continue-p (funcall continue-p) t))
(if (or (memq (get-text-property (point) 'face) identifier-faces)
(let ((flface-prop (get-text-property (point) 'font-lock-face)))
(and flface-prop (memq flface-prop identifier-faces)))
(get-text-property (point) 'color-identifiers:fontified))
(and flface-prop (memq flface-prop identifier-faces))))
(if (and (looking-back identifier-context-re (line-beginning-position))
(or (not identifier-exclusion-re) (not (looking-at identifier-exclusion-re)))
(looking-at identifier-re))
Expand Down

0 comments on commit 9393a14

Please sign in to comment.