mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 00:44:18 +00:00
fixed the regular expression bug in python-mode snippets.
This commit is contained in:
@@ -23,8 +23,8 @@ class ${1:ClassName}(${2:object}):
|
||||
'(lambda (x)
|
||||
(mapcar
|
||||
(lambda (x)
|
||||
(replace-regexp-in-string "\s*$" ""
|
||||
(replace-regexp-in-string "^\s*" "" x))) x))
|
||||
(replace-regexp-in-string "[[:blank:]]*$" ""
|
||||
(replace-regexp-in-string "^[[:blank:]]*" "" x))) x))
|
||||
(mapcar '(lambda (x) (split-string x "="))
|
||||
(split-string text ",")))
|
||||
indent)))
|
||||
@@ -44,8 +44,8 @@ class ${1:ClassName}(${2:object}):
|
||||
'(lambda (x)
|
||||
(mapcar
|
||||
'(lambda (x)
|
||||
(replace-regexp-in-string "\s*$" ""
|
||||
(replace-regexp-in-string "^\s*" "" x)))
|
||||
(replace-regexp-in-string "[[:blank:]]*$" ""
|
||||
(replace-regexp-in-string "^[[:blank:]]*" "" x)))
|
||||
x))
|
||||
(mapcar '(lambda (x) (split-string x "="))
|
||||
(split-string text ",")))
|
||||
|
||||
Reference in New Issue
Block a user