mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
fix bug: comparing string to symbol using string=
This commit is contained in:
parent
d88b314b63
commit
aea245c70e
12
yasnippet.el
12
yasnippet.el
@ -126,12 +126,12 @@ proper values:
|
||||
|
||||
(defvar yas/buffer-local-condition
|
||||
'(if (and (not (bobp))
|
||||
(or (string= "font-lock-comment-face"
|
||||
(get-char-property (1- (point))
|
||||
'face))
|
||||
(string= "font-lock-string-face"
|
||||
(get-char-property (1- (point))
|
||||
'face))))
|
||||
(or (equal "font-lock-comment-face"
|
||||
(get-char-property (1- (point))
|
||||
'face))
|
||||
(equal "font-lock-string-face"
|
||||
(get-char-property (1- (point))
|
||||
'face))))
|
||||
'(require-snippet-condition . force-in-comment)
|
||||
t)
|
||||
"Condition to yasnippet local to each buffer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user