Julien Nicoulaud
f824e5e84d
Options should only be set locally
hace 13 años
Andreas Gahr
024c1c46f7
next try. fix for issue #76 without brakeing fix for #21
hace 13 años
Julien Nicoulaud
8d4cde6301
(Hopefully) fix #21 (tilde and hashed directories in paths)
hace 13 años
Julien Nicoulaud
db8f98fc53
Set default style for pipes and stuff to none
hace 13 años
Andreas Gahr
287167d453
fix for issue #76 . This was more ore less forgotten in pull request #75
hace 13 años
Andreas Gahr
670961ad01
handle highlighting for precommands; handle highlighting for commands separators
hace 13 años
Andreas Gahr
f84f9319d8
supposed fix for issue #73 and issue #74
hace 13 años
Julien Nicoulaud
a6d105131c
Fix #21 : No highlighting when using tilde
hace 13 años
Takeshi Banse
1d729202ec
add tests for handling tildes
Signed-off-by: Takeshi Banse <takebi@laafc.net>
hace 13 años
Takeshi Banse
48a18291f9
add some tests
Signed-off-by: Takeshi Banse <takebi@laafc.net>
hace 13 años
Takeshi Banse
4a8b184632
pass ${arg} explicit
Signed-off-by: Takeshi Banse <takebi@laafc.net>
hace 13 años
Andreas Gahr
b1b65dc486
bracket highlighter: small typo in testcase - document new style
hace 13 años
Andreas Gahr
06ad03e32c
bracket highlighter: simplify
hace 13 años
Andreas Gahr
8375ef6e72
bracket highlighter: make the style configurable, when cursor is on bracket
hace 13 años
Andreas Gahr
24243becba
bracket highlighter: fix typo from last commit
hace 13 años
Andreas Gahr
e1ed255c0a
bracket highlighter: start loops with 0 which is more natural and also more in line whith the other highlighters
hace 13 años
Andreas Gahr
0d55207c78
simple testcases for bracket highlighter - actually add files
hace 13 años
Andreas Gahr
33813c6a52
simple testcases for bracket highlighter
hace 13 años
Valodim
f27ef7a279
after exec token we can expect a command
hace 13 años
Julien Nicoulaud
08dae96eb1
Add highlighter triggered when the user is root
hace 13 años
Julien Nicoulaud
11de634b33
Add cursor highlighter
hace 13 años
garinger
e7ab165310
* optimize discrimination of bracket-type
* use a nicer variable name
hace 13 años
garinger
f1eb5aeef7
skip all brackets inside quotes (" and ')
hace 13 años
garinger
2fe9505647
simplify check for bracket under cursor
hace 13 años
garinger
05e4a031c7
* remove a safety belt - no need to check if array has elements, as defaults are provided
* reuse $pos instead of using another variable
* remove declaration forgotten in last commit
hace 13 años
garinger
d4acac9837
eliminate a variable and simplify
hace 13 años
garinger
ef74d2b611
Only match brackets of the same type
hace 13 años
garinger
48c30a805a
highlight opening bracket with "bracket-error" style, if the closing bracket is still missing
hace 13 años
Julien Nicoulaud
e7d7ccfe35
Group if statements in f26310d97e
hace 13 años
Guido
f26310d97e
* enable command lines starting with a hyphen.
hace 13 años
Julien Nicoulaud
ef4f5ed638
Fix READMEs
hace 13 años
Julien Nicoulaud
0772ddd346
Big refactoring.
* Don't override user defined styles
* Better modularisation of highlighters
* Allow to define which highlighters are activated
* Allow to define the order in which they are defined
* Minor performance optimizations
* Fixed some variables leak
* Improve documentation
* Brackets highlighter: use ZSH_HIGHLIGHT_STYLES instead of a specific array
hace 13 años
Julien Nicoulaud
bc788f3f19
Start splitting highlighters to separate files.
The script still works on its own, highlighters in highlighters/ are
loaded as addons if present.
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
hace 13 años