소스 검색

'main': Support multiple styles in _zsh_highlight_main_add_region_highlight

pull/298/head
m0viefreak 8 년 전
부모
커밋
61f43255ab
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      highlighters/main/main-highlighter.zsh

+ 2
- 2
highlighters/main/main-highlighter.zsh 파일 보기

@ -68,7 +68,7 @@ _zsh_highlight_main_highlighter_predicate()
# Helper to deal with tokens crossing line boundaries.
_zsh_highlight_main_add_region_highlight() {
integer start=$1 end=$2
local style=$3
shift 2
# The calculation was relative to $PREBUFFER$BUFFER, but region_highlight is
# relative to $BUFFER.
@ -77,7 +77,7 @@ _zsh_highlight_main_add_region_highlight() {
(( end < 0 )) && return # having end<0 would be a bug
(( start < 0 )) && start=0 # having start<0 is normal with e.g. multiline strings
_zsh_highlight_add_highlight $start $end $style
_zsh_highlight_add_highlight $start $end "$@"
}
# Wrapper around 'type -w'.

불러오는 중...
취소
저장