sonnym
04f9c8884f
highlight ^old^new pattern
by extending the already in place mechanism of checking for the first
histchar to check for the second as well
10 years ago
Julien Nicoulaud
f289a9f8e7
Merge pull request #125 from acatton/fix-121
Fix #121 : sudo syntax highlighting incorrectly
10 years ago
Julien Nicoulaud
8ac964186d
Merge pull request #131 from MarkLodato/array-assignments
Properly highlight array assignments
10 years ago
Julien Nicoulaud
ffce2a0b20
Merge pull request #133 from lucc/master
protect alias expansion from interpreting aliases as options
10 years ago
Julien Nicoulaud
63a720af9b
Merge pull request #128 from knu/patch-1
Do not leak a variable: cdpath_dir.
10 years ago
Lucas Hoffmann
784a5dc35b
protect alias expansion from interpreting aliases as options
If one defines aliases like `++` the alias builtin tries to interprete these
as options so they have to be protected like this
alias -- ++=true
The same goes for a call to `alias` in order to expand the alias again.
11 years ago
Mark Lodato
441f1a8aad
highlight array assignments of the form x[y]=...
This code is more lenient than bash. Examples:
$ x[y[]=
zsh: no matches found: x[y[]=
$ x[][]=
zsh: no matches found: x[][]=
The proper solution is to look inside the [...] and make sure that all
unescaped/unquoted square brackes are matched, but that is a heck of
a lot more complicated than this simple 8-character patch.
11 years ago
Mark Lodato
c62cb54e9d
do not remove quotes when checking assignments
Zsh does not allow the variable name or the equals sign to be quoted or
escaped. The previous code incorrectly highlighted the following
examples as assignments:
$ 'x=y'
zsh: command not found: x=y
$ x\=y
zsh: command not found: x=y
$ "x"=y
zsh: command not found: x=y
$ \x=y
zsh: command not found: x=y
11 years ago
Akinori MUSHA
0fc6b07509
Do not leak a variable: cdpath_dir.
Leaking a variable that holds a path in CDPATH could easily end up appearing on your prompt like `~cdpath_dir/subdir`.
11 years ago
Evan Pitstick
dffbab0c92
a more simple and universal way (for zsh projects) to find highlight dir path
11 years ago
Antoine Catton
3b3a58be91
Fix #121 : sudo syntax highlighting incorrectly
Parse sudo command line in order to highlight the options correctly
11 years ago
Julien Nicoulaud
dbd27cb30a
#155 : document path_prefix/path_approx
11 years ago
Julien Nicoulaud
08b80022ca
Merge pull request #123 from Shura0/master
Highlighted dollar variable ver. 2
11 years ago
Shura
a7ee0597ef
Update main-highlighter.zsh
Comments added
11 years ago
Julien Nicoulaud
3677b75731
Merge pull request #115 from Valodim/master
add separate path_prefix and path_approx hilights
11 years ago
Julien Nicoulaud
3f2c76f393
Merge pull request #116 from jameskyle/feature/Issue-#92-silence-system-bell-in-osx
Issue #92 Eliminates system bell errors on osx.
11 years ago
Julien Nicoulaud
6fcdb06b28
Merge pull request #122 from shockone/master
Update main-highlighter.zsh
11 years ago
Владимир
57c01d19de
Update main-highlighter.zsh
Add support of CDPATH
11 years ago
Shura
8abcf187f6
dollar variable and backslash codes highlighting
11 years ago
James Kyle
93827ed84d
Issue #92 Eliminates system bell errors on osx.
Prepended an 'if' to remove error bell on osx systems.
11 years ago
Vincent Breitmoser
228f5a6aad
add separate path_prefix and path_approx hilights
11 years ago
Evan Pitstick
0fcc2629d2
Finds highlighters dir a little better
11 years ago
Julien Nicoulaud
e5d8a50d36
Merge pull request #106 from cknadler/master
Fix relative links in various project readmes
11 years ago
Chris Knadler
612e493cba
Fix relative links in highlighters readme
11 years ago
Chris Knadler
408b100295
Fix relative link in main readme
11 years ago
Julien Nicoulaud
a0862053f5
Merge pull request #100 from hchbaw/for-nicoulaj/pattern-local
make $pattern local to _zsh_highlight_pattern_highlighter #97
11 years ago
Takeshi Banse
b4e667795c
make $pattern local to _zsh_highlight_pattern_highlighter #97
Signed-off-by: Takeshi Banse <takebi@laafc.net>
11 years ago
Julien Nicoulaud
45194671af
Merge pull request #91 from xaocon/master
Added sudo as a precommand
12 years ago
evan
19981ef9ea
added sudo as a precommand
12 years ago
Jan M. Binder
732b7d6e65
Fix bracket highlighter
12 years ago
Jan M. Binder
966eb851ca
Added quotes to suppress error
12 years ago
Julien Nicoulaud
bb0d575942
Merge pull request #85 from jlporter/master
resolve issue #83
12 years ago
Julien Nicoulaud
30c365e030
Add links to Arch Linux and Gentoo packages
(Anyone knowing packages for other systems or wanting to create it,
please get in touch!)
12 years ago
Julien Nicoulaud
2c5c38144d
close #84
12 years ago
Jud Porter
d82eee5212
add emulate -L zsh to _zsh_highlight_main_highlighter. resolves issue #83
12 years ago
NAKAMURA Yoshitaka
56b134f5d6
fix "_zsh_highlight_widget_XXX:zle: unknown option: X" error
13 years ago
Julien Nicoulaud
d2715e2cb3
Merge pull request #82 from garinger/feature
make highlighting work for first entry in history. fixes #79
13 years ago
Andreas Gahr
603fce64b5
autoload add-zsh-hook && provide a nicer error message if that fails due to old zsh version, or similar situations. Reset another variable in hook function; it can't hurt
13 years ago
Andreas Gahr
304ddb9400
make highlighting work for first entry in history. fixes #79
13 years ago
Julien Nicoulaud
f824e5e84d
Options should only be set locally
13 years ago
Andreas Gahr
024c1c46f7
next try. fix for issue #76 without brakeing fix for #21
13 years ago
Julien Nicoulaud
8d4cde6301
(Hopefully) fix #21 (tilde and hashed directories in paths)
13 years ago
Julien Nicoulaud
db8f98fc53
Set default style for pipes and stuff to none
13 years ago
Andreas Gahr
287167d453
fix for issue #76 . This was more ore less forgotten in pull request #75
13 years ago
Andreas Gahr
670961ad01
handle highlighting for precommands; handle highlighting for commands separators
13 years ago
Julien Nicoulaud
cbfd4a8889
Merge pull request #75 from garinger/master
supposed fix for issue #73 and issue #74
13 years ago
Andreas Gahr
f84f9319d8
supposed fix for issue #73 and issue #74
13 years ago
Takeshi Banse
b0fee4e758
pass args down to each original zle call
Signed-off-by: Takeshi Banse <takebi@laafc.net>
13 years ago
Julien Nicoulaud
f786e9977c
Merge pull request #71 from hchbaw/for-nicoulaj/nounset
make _zsh_highlight nounset-able
13 years ago
Julien Nicoulaud
a6d105131c
Fix #21 : No highlighting when using tilde
13 years ago