This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
zsh-syntax-highlighting
mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
17
Wiki
Activity
Browse Source
main: Use =~ for globbing test
This will set MATCH as needed for the next commit
pull/477/head
Matthew Martin
6 years ago
parent
c1a048a084
commit
604075aa90
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
highlighters/main/main-highlighter.zsh
+ 1
- 1
highlighters/main/main-highlighter.zsh
View File
@ -840,7 +840,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
(
(
i
+=
1
)
)
(
(
i
+=
1
)
)
fi
;
;
fi
;
;
*
)
*
)
if
$highlight_glob
&&
[
[
${
arg
[
$i
]
}
=
=
[
*?
]
||
${
arg
:
$i
-1
}
=
=
\<
[
0-9
]
#-[0-9]#\>* ]];
then
if
$highlight_glob
&&
[
[
${
arg
[
$i
]
}
=
~ ^
[
*?
]
||
${
arg
:
$i
-1
}
=
~ ^
\<
[
0-9
]
*-
[
0-9
]
*
\>
]
]
;
then
(
(
i
+=
$#
MATCH -
1
)
)
(
(
i
+=
$#
MATCH -
1
)
)
base_style
=
globbing
base_style
=
globbing
path_eligible
=
0
path_eligible
=
0
Write
Preview
Loading…
Cancel
Save