Permalink
Browse files

- Improved set highlight.

  • Loading branch information...
1 parent dc208b4 commit f3833f590411e660e4f2c29f9593eea51fdd4f48 @Shougo committed Jan 2, 2013
Showing with 8 additions and 5 deletions.
  1. +2 −4 autoload/vimshell.vim
  2. +3 −0 doc/vimshell.txt
  3. +3 −1 syntax/vimshell.vim
View
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: vimshell.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 29 Dec 2012.
+" Last Modified: 02 Jan 2013.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -227,8 +227,6 @@ function! s:create_shell(path, context) "{{{
call vimshell#start_insert()
- call s:set_syntax()
-
" Check prompt value. "{{{
if vimshell#head_match(vimshell#get_prompt(), vimshell#get_secondary_prompt())
\ || vimshell#head_match(vimshell#get_secondary_prompt(), vimshell#get_prompt())
@@ -909,7 +907,7 @@ function! s:initialize_vimshell(path, context) "{{{
call vimshell#help#init()
call vimshell#interactive#init()
endfunction"}}}
-function! s:set_syntax()
+function! vimshell#set_highlight()
" Set syntax.
let prompt_pattern = "'^" . escape(
\ vimshell#escape_match(vimshell#get_prompt()), "'") . "'"
View
@@ -1379,6 +1379,9 @@ https://github.com/chikatoike/concealedyank.vim
==============================================================================
CHANGELOG *vimshell-changelog*
+2013-01-02
+- Improved set highlight.
+
2013-01-01
- Fixed vimshell_complete behavior.
View
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: syntax/vimshell.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 22 Jul 2012.
+" Last Modified: 02 Jan 2013.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -93,4 +93,6 @@ highlight default link vimshellError Error
highlight default link vimshellErrorHidden Ignore
highlight default link vimshellUserPromptHidden Ignore
+call vimshell#set_highlight()
+
let b:current_syntax = 'vimshell'

0 comments on commit f3833f5

Please sign in to comment.