aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
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..913d7d3 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