Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

yas--document-symbol: fix no transform case

was causing YASnippetnippet
  • Loading branch information...
commit 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 1 parent df58222
@npostavs npostavs authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 doc/yas-doc-helper.el
View
9 doc/yas-doc-helper.el
@@ -67,13 +67,14 @@
(setq body (replace-regexp-in-string
"\\<\\([A-Z][-A-Z0-9]+\\)\\(\\sw+\\)?\\>"
#'(lambda (match)
- (let* ((match1 (downcase (match-string 1 match)))
+ (let* ((match1 (match-string 1 match))
+ (prefix (downcase match1))
(suffix (match-string 2 match))
(fmt (cond
- ((member match1 args) "@<code>%s@</code>")
+ ((member prefix args) "@<code>%s@</code>")
((null suffix) "/%s/"))))
- (if fmt (format fmt match1)
- match)))
+ (if fmt (format fmt prefix)
+ match1)))
body t t 1)
body (replace-regexp-in-string
"`\\([a-z-]+\\)'"
Please sign in to comment.
Something went wrong with that request. Please try again.