- Improved syntax.

This commit is contained in:
Shougo Matsushita 2012-10-29 11:32:38 +09:00
parent d30ce7fe79
commit e1bb6d58ef

View File

@ -74,14 +74,14 @@ function! s:initialize()"{{{
call map(s:snippets_dir, 'substitute(v:val, "[\\\\/]$", "", "")') call map(s:snippets_dir, 'substitute(v:val, "[\\\\/]$", "", "")')
augroup neosnippet augroup neosnippet
autocmd BufNewFile,BufRead,ColorScheme * autocmd BufNewFile,BufRead,Syntax *
\ execute 'syntax match neosnippetExpandSnippets' \ execute 'syntax match neosnippetExpandSnippets'
\ "'".s:get_placeholder_marker_pattern(). '\|' \ "'".s:get_placeholder_marker_pattern(). '\|'
\ .s:get_sync_placeholder_marker_pattern().'\|' \ .s:get_sync_placeholder_marker_pattern().'\|'
\ .s:get_mirror_placeholder_marker_pattern()."'" \ .s:get_mirror_placeholder_marker_pattern()."'"
\ 'containedin=ALL oneline' \ 'containedin=ALL oneline'
if has('conceal') if has('conceal')
autocmd BufNewFile,BufRead,ColorScheme * autocmd BufNewFile,BufRead,Syntax *
\ syntax region neosnippetConcealExpandSnippets \ syntax region neosnippetConcealExpandSnippets
\ matchgroup=neosnippetExpandSnippets \ matchgroup=neosnippetExpandSnippets
\ start='<`\d\+:\=\|<{\d\+:\=\|<|' \ start='<`\d\+:\=\|<{\d\+:\=\|<|'