Permalink
Browse files

- Fixed syntax.

  • Loading branch information...
1 parent a316efb commit 69101e7fd075e0252abfc895896955f5223b0fb6 @Shougo committed May 22, 2012
Showing with 11 additions and 8 deletions.
  1. +4 −4 autoload/unite.vim
  2. +1 −1 autoload/unite/sources/file_mru.vim
  3. +3 −0 doc/unite.txt
  4. +3 −3 syntax/unite.vim
View
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: unite.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 21 May 2012.
+" Last Modified: 22 May 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -2237,7 +2237,7 @@ function! s:initialize_unite_buffer()"{{{
let unite.abbr_head = unite.max_source_name+source_padding
execute 'syntax region uniteCandidateAbbr' 'start=/\%'
- \ .(unite.abbr_head).'c/ end=/$/ contained'
+ \ .(unite.abbr_head).'c/ end=/$/ keepend contained'
execute 'highlight default link uniteCandidateAbbr'
\ g:unite_abbr_highlight
@@ -2248,13 +2248,13 @@ function! s:initialize_unite_buffer()"{{{
\ source.name : ''
execute 'syntax region' source.syntax 'start=/\%'
- \ .(unite.abbr_head).'c/ end=/$/ contained'
+ \ .(unite.abbr_head).'c/ end=/$/ keepend contained'
execute 'highlight default link'
\ source.syntax g:unite_abbr_highlight
execute printf('syntax region %s start="^- %s" end="$" '.
- \ 'contains=uniteCandidateMarker,%s%s',
+ \ 'keepend contains=uniteCandidateMarker,%s%s',
\ 'uniteSourceLine__'.source.syntax,
\ (name == '' ? '' : name . '\>'),
\ (name == '' ? '' : 'uniteCandidateSourceName,'),
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: file_mru.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 17 May 2012.
+" Last Modified: 21 May 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
View
@@ -2463,6 +2463,9 @@ https://github.com/Shougo/unite.vim/wiki/unite-plugins
==============================================================================
CHANGELOG *unite-changelog*
+2012-05-22
+- Fixed syntax.
+
2012-05-21
- Clear mark.
View
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: syntax/unite.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 21 May 2012.
+" Last Modified: 22 May 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -42,8 +42,8 @@ syntax match uniteSourceArgs /:\S\+/ contained
syntax match uniteQuickMatchLine /^.|.*/
\ contains=uniteQuickMatchTrigger,uniteCandidateSourceName,uniteCandidateAbbr
-syntax region uniteMarkedLine start=/^\*/ end='$'
-syntax match uniteNonMarkedLine /^- .*/
+syntax region uniteMarkedLine start=/^\*/ end='$' keepend
+syntax region uniteNonMarkedLine start=/^- / end='$' keepend
\ contains=uniteCandidateMarker,uniteCandidateSourceName,uniteCandidateAbbr
syntax match uniteCandidateMarker /^- / contained
syntax match uniteQuickMatchTrigger /^.|/ contained

0 comments on commit 69101e7

Please sign in to comment.