Code style

Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
This commit is contained in:
Julien Nicoulaud
2011-02-17 19:51:07 +01:00
parent 6879d3c29f
commit dd84bff854
2 changed files with 4 additions and 11 deletions

View File

@@ -51,8 +51,7 @@ _zsh_highlight-keyword() {
_zsh_highlight-keyword-loop() {
# This does *not* do its job syntactically, sorry.
local buf="$1"
local pat="$2"
local buf="$1" pat="$2"
local -a match mbegin mend
if [[ "$buf" == (#b)(*)(${~pat})* ]]; then
region_highlight+=("$((mbegin[2] - 1)) $mend[2] $ZSH_HIGHLIGHT_KEYWORD_KEYWORDS[$pat]")