aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2019-03-15 16:05:54 +0900
committerGitHub <noreply@github.com>2019-03-15 16:05:54 +0900
commit89a80b787754b348071a905d1705a1aaceebf59f (patch)
tree3d96e37be0b782bda7edb5ab86b04df7fc1c237f /autoload
parentbc011a7f16da82584bda70bb7b4d575c2525fa88 (diff)
parentae8e1818efe27bb946fd948fc2fe8cc3f38e0e2d (diff)
downloadvim-sonictemplate-89a80b787754b348071a905d1705a1aaceebf59f.tar.gz
vim-sonictemplate-89a80b787754b348071a905d1705a1aaceebf59f.tar.bz2
vim-sonictemplate-89a80b787754b348071a905d1705a1aaceebf59f.zip
Merge pull request #30 from Jagua/fix-postfix-escape
Fix missing backslash escape at postfix and add some postfix patterns
Diffstat (limited to 'autoload')
-rw-r--r--autoload/sonictemplate.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim
index a98f3e2..9397efa 100644
--- a/autoload/sonictemplate.vim
+++ b/autoload/sonictemplate.vim
@@ -340,6 +340,7 @@ function! sonictemplate#postfix()
return ''
endif
let line = getline('.')[:col('.')]
+ let line = escape(line, '\&')
for k in keys(s:pat[s:get_raw_filetype()])
let m = matchstr(line, k)
if len(m) > 0