yasnippet.elã¯ããã©ã«ãã§ã³ã¡ã³ããæååä¸ã§ã¯åæã«å±éãããªããããªè¨å®ã«ãªã£ã¦ããâ¦ã¯ãã ã£ãã (defvar yas/buffer-local-condition '(if (and (not (bobp)) (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)) ããã©ã«ãã§ãã¾ãããã¯ããªã®ã ãã俺ã®ç°å¢ï¼Emacs22ï¼ã ã¨get-char-propertyã¯symbolãè¿ãã®ã§ãã¾ããããªãã ãããããã®ã³ã¼ãget
{{#tags}}- {{label}}
{{/tags}}