mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Code style
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
This commit is contained in:
parent
6879d3c29f
commit
dd84bff854
2 changed files with 4 additions and 11 deletions
|
|
@ -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]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue