- Improved documentation.

This commit is contained in:
Shougo Matsushita 2012-10-19 18:38:52 +09:00
parent f0a97fa957
commit a0c387de1e
2 changed files with 8 additions and 1 deletions

View File

@ -808,7 +808,8 @@ function! s:eval_snippet(snippet_text)"{{{
endif
let prev_match = matchend(a:snippet_text,
\ '\\\@<!`.\{-}\\\@<!`', match)
let snip_word .= eval(a:snippet_text[match+1 : prev_match - 2])
sandbox let snip_word .= eval(
\ a:snippet_text[match+1 : prev_match - 2])
let match = match(a:snippet_text, '\\\@<!`.\{-}\\\@<!`', prev_match)
endwhile

View File

@ -334,6 +334,12 @@ Eval snippet feature is available.
prev_word '^'
`expand("%")`
<
Note: You want to use backticks in snippet, you must escape backticks.
>
snippet code
abbr code
\`${1}\`${2}
<
If you use |:NeoSnippetEdit| command for easy snippet editing, the file will
be loaded automatically when you save the file.