Andreas Gahr
e1ed255c0a
bracket highlighter: start loops with 0 which is more natural and also more in line whith the other highlighters
2011-08-08 14:48:16 +02:00
Julien Nicoulaud
4e0749dd83
Merge pull request #68 from garinger/master
...
test data for bracket highlighter
2011-08-05 08:16:50 -07:00
Andreas Gahr
0d55207c78
simple testcases for bracket highlighter - actually add files
2011-08-05 16:38:46 +02:00
Andreas Gahr
33813c6a52
simple testcases for bracket highlighter
2011-08-05 16:25:47 +02:00
Julien Nicoulaud
3c82e872ad
Merge pull request #66 from simonair/master
...
Add ` || true ' to last line of init script to guarantee zero exit code when sourcing multiple times
2011-08-03 05:42:50 -07:00
Simon Heimlicher
854038010f
Added || true to ensure zero exit code
2011-08-03 09:40:19 +00:00
Julien Nicoulaud
186d80054a
Fix #65 , sourcing the script multiples times should not cause issues anymore
2011-08-02 20:25:49 +02:00
Valodim
f27ef7a279
after exec token we can expect a command
2011-08-02 00:55:55 +08:00
Julien Nicoulaud
0e331cd654
Isolate setup code in functions to ease messing with zsh-syntax-highlighting
2011-07-31 17:59:55 +02:00
Julien Nicoulaud
5003fa7c9b
We don't need this hook as we have already bound every widget we could find (stop me if I'm wrong)
2011-07-31 17:14:56 +02:00
Julien Nicoulaud
08dae96eb1
Add highlighter triggered when the user is root
2011-07-27 00:37:33 +02:00
Julien Nicoulaud
11de634b33
Add cursor highlighter
2011-07-27 00:13:41 +02:00
Julien Nicoulaud
4ff08dcfa6
Fix #53 : Prefix all defined functions with _zsh_highlight
2011-07-26 23:16:52 +02:00
Julien Nicoulaud
776453cb5b
Fix #46 : Conflict with url-quote-magic
2011-07-26 22:50:53 +02:00
Julien Nicoulaud
3b27ad778d
More efficient way to strip leading dot
2011-07-25 22:30:06 +02:00
Julien Nicoulaud
9617f6e61b
Remove contributors list (too annoying to maintain), people can use Commits > Contributors ( https://github.com/zsh-users/zsh-syntax-highlighting/contributors ) to access the same list
2011-07-25 22:08:29 +02:00
Julien Nicoulaud
8b7a6bd24d
Add @garinger to the list of contributors
2011-07-25 22:06:24 +02:00
Julien Nicoulaud
d5cceb2c34
Merge pull request #64 from Valodim/master
...
don't highlight anymore for long lines
2011-07-25 12:52:47 -07:00
Valodim
5f68accccf
Don't highlight if buffer is longer than $ZSH_HIGHLIGHT_MAXLENGTH
2011-07-25 14:51:43 +02:00
Julien Nicoulaud
8ebce17a11
Merge pull request #63 from garinger/master
...
Fix for Issue #36 "Brackets of different types matched"
2011-07-21 03:45:51 -07:00
Julien Nicoulaud
a18e43d059
Fix README links
2011-07-21 12:45:21 +02:00
garinger
e7ab165310
* optimize discrimination of bracket-type
...
* use a nicer variable name
2011-07-13 12:47:27 -07:00
garinger
f1eb5aeef7
skip all brackets inside quotes (" and ')
2011-07-12 08:11:21 -07:00
garinger
2fe9505647
simplify check for bracket under cursor
2011-07-12 08:07:08 -07:00
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
2011-07-12 07:56:12 -07:00
garinger
d4acac9837
eliminate a variable and simplify
2011-07-08 12:43:59 -07:00
garinger
ef74d2b611
Only match brackets of the same type
2011-07-08 12:25:09 -07:00
Julien Nicoulaud
eb749f2681
Merge pull request #62 from garinger/master
...
Fix for Issue #35 "Unclosed brackets not marked as error"
2011-07-08 08:30:04 -07:00
garinger
48c30a805a
highlight opening bracket with "bracket-error" style, if the closing bracket is still missing
2011-07-08 07:52:32 -07:00
garinger
1858be26bd
exclude .beep
2011-07-07 00:25:44 +08:00
garinger
3802e03b4c
exclude .beep
2011-07-05 06:48:02 -07:00
Julien Nicoulaud
9e75ca0e76
Add @tednaleid to the list of contributors
2011-06-30 20:11:38 +02:00
Julien Nicoulaud
28720c77aa
Some fixes consecutive to pull request #61 merge
...
* Allow to override highlighters directory through `ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR`
* Handle spaces in the directory path
* Use Zsh builtin "h" modifier instead of `dirname`
2011-06-30 20:08:43 +02:00
Julien Nicoulaud
df2fe2a97d
Merge pull request #61 from tednaleid/master
...
Error: "unrecognized modifier 'A'" on startup for zsh 4.3.9 on OSX
2011-06-30 11:05:48 -07:00
Ted Naleid
4ed9f9a68f
fix for issue #60 , unrecognized modifier 'A' on startup
2011-06-29 21:32:58 -05:00
Julien Nicoulaud
e04f6ab862
Safety checks before looking up cursor position
2011-06-17 12:36:07 +02:00
Julien Nicoulaud
f6af27b8a6
More reliable way to hook precmd
2011-06-17 12:35:26 +02:00
Julien Nicoulaud
52bdb56fdb
Merge pull request #57 from guidovansteen/patch-1
...
Much easier and less error prone way to start highlighting immediately af
2011-06-17 02:27:49 -07:00
Guido
71e797a8b5
Much easier and less error prone way to start highlighting immediately after the creation of a new command line.
2011-06-16 13:57:34 -07:00
Julien Nicoulaud
bf4fe1f228
Another README link fix
2011-06-16 14:56:55 +02:00
Julien Nicoulaud
1435868740
Another README link fix
2011-06-16 14:54:47 +02:00
Julien Nicoulaud
e7d7ccfe35
Group if statements in f26310d97e
2011-06-16 14:54:24 +02:00
Guido
f26310d97e
* enable command lines starting with a hyphen.
2011-06-16 04:28:59 -07:00
Guido
56801a6b42
* added a workaround to start highlighting immediately after the creation of a new command line.
2011-06-16 04:26:51 -07:00
Julien Nicoulaud
ef4f5ed638
Fix READMEs
2011-06-12 23:16:41 +02:00
Julien Nicoulaud
bb7fcb79fa
Fix #56 : tolerance to WARN_GLOBAL option
2011-06-12 23:09:59 +02:00
Julien Nicoulaud
55e6a85fbb
Merge branch 'master' of github.com:nicoulaj/zsh-syntax-highlighting
...
Conflicts:
zsh-syntax-highlighting.zsh
2011-06-12 23:04:33 +02:00
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
2011-06-12 22:57:14 +02:00
NAKAMURA Yoshitaka
0999ab05ba
do nothing if PENDING inputs are exist
...
Originally, zsh-syntax-highlighting called highlight functions at every inputs.
It's OK for user's keyboard inputs. But when long inputs come from clipboard,
it cause noticeable slowdown.
2011-03-12 16:31:18 +09:00
Julien Nicoulaud
19f16752bb
Issue 49: Don't use readlink, options differ between systems
...
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-03-02 00:34:12 +01:00