You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we can change this function as follows to fix this problem.
(defunyas-escape-text (text)
"Escape TEXT for snippet."
(when text
(replace-regexp-in-string "[`\\$]""\\\\\\&" text)))
system information
yasnippet version
20240406.1314
emacs version
GNU Emacs 29.2.50
Development version e95a8622263d on emacs-29 branch; build date 2024-03-24.
Copyright (C) 2024 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
The text was updated successfully, but these errors were encountered:
karta0807913
changed the title
should yas-escape-text function escape backquote "`"?
should yas-escape-text escape backquote "`"?
May 11, 2024
hello everyone, I notice that
yas-escape-text
function doesn't escape the backquote "`". Should we escape it?yasnippet/yasnippet.el
Lines 2091 to 2094 in eb5ba26
example code:
I think we can change this function as follows to fix this problem.
system information
yasnippet version
emacs version
The text was updated successfully, but these errors were encountered: