commit 3245895ec8f717dad80f39b224d78a867c70920f
parent 418065d8433a6d902e0c107cfa8033b174b5f899
Author: Iqbal Ansari <iqbal.ansari@ignitesol.com>
Date: Mon, 26 Oct 2015 14:32:37 +0530
Handle multi-line comments
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/emojify.el b/emojify.el
@@ -50,10 +50,13 @@
(nth 8 (syntax-ppss)))))
(or (not (char-before start))
;; 32 space since ? i.e. (? followed by a space is not readable)
- (memq (char-syntax (char-before start)) '(32 ?- ?< ?")))
+ ;; 34 is " since?" confuses font-lock
+ ;; ?> Think multiline comments
+ (memq (char-syntax (char-before start)) '(32 34 ?- ?< ?>)))
(or (not (char-after end))
;; 32 space since ? i.e. (? followed by a space is not readable)
- (memq (char-syntax (char-after end)) '(32 ?- ?> ?")))
+ ;; 34 is " since?" confuses font-lock
+ (memq (char-syntax (char-after end)) '(32 ?- ?> 34)))
(or (not (equal major-mode 'org-mode))
(equal (face-at-point) 'org-tag)))
;; TODO: Remove double checks