- Improved syntax of markers.

This commit is contained in:
Shougo Matsushita 2012-10-29 11:27:22 +09:00
parent de453e5a16
commit d30ce7fe79
2 changed files with 5 additions and 4 deletions

View File

@ -75,19 +75,19 @@ function! s:initialize()"{{{
augroup neosnippet augroup neosnippet
autocmd BufNewFile,BufRead,ColorScheme * autocmd BufNewFile,BufRead,ColorScheme *
\ execute 'syn 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' \ 'containedin=ALL oneline'
if has('conceal') if has('conceal')
autocmd BufNewFile,BufRead,ColorScheme * autocmd BufNewFile,BufRead,ColorScheme *
\ syn region neosnippetConcealExpandSnippets \ syntax region neosnippetConcealExpandSnippets
\ matchgroup=neosnippetExpandSnippets \ matchgroup=neosnippetExpandSnippets
\ start='<`\d\+:\=\|<{\d\+:\=\|<|' \ start='<`\d\+:\=\|<{\d\+:\=\|<|'
\ end='`>\|}>\||>' \ end='`>\|}>\||>'
\ containedin=ALL \ containedin=ALL
\ concealends \ concealends oneline
endif endif
augroup END augroup END
doautocmd neosnippet BufRead doautocmd neosnippet BufRead

View File

@ -456,6 +456,7 @@ CHANGELOG *neosnippet-changelog*
2012-10-29 2012-10-29
- Improved parse of snippets file. - Improved parse of snippets file.
- Improved syntax of markers.
2012-10-28 2012-10-28
- Improved snipMate compatibility. - Improved snipMate compatibility.