fix bug: comparing string to symbol using string=

This commit is contained in:
Zhang Chiyuan 2008-04-20 08:25:14 +00:00
parent d88b314b63
commit aea245c70e

View File

@ -126,10 +126,10 @@ proper values:
(defvar yas/buffer-local-condition (defvar yas/buffer-local-condition
'(if (and (not (bobp)) '(if (and (not (bobp))
(or (string= "font-lock-comment-face" (or (equal "font-lock-comment-face"
(get-char-property (1- (point)) (get-char-property (1- (point))
'face)) 'face))
(string= "font-lock-string-face" (equal "font-lock-string-face"
(get-char-property (1- (point)) (get-char-property (1- (point))
'face)))) 'face))))
'(require-snippet-condition . force-in-comment) '(require-snippet-condition . force-in-comment)