Andreas Gahr
24243becba
bracket highlighter: fix typo from last commit
13 years ago
Andreas Gahr
e1ed255c0a
bracket highlighter: start loops with 0 which is more natural and also more in line whith the other highlighters
13 years ago
Julien Nicoulaud
4e0749dd83
Merge pull request #68 from garinger/master
test data for bracket highlighter
13 years ago
Andreas Gahr
0d55207c78
simple testcases for bracket highlighter - actually add files
13 years ago
Andreas Gahr
33813c6a52
simple testcases for bracket highlighter
13 years ago
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
13 years ago
Simon Heimlicher
854038010f
Added || true to ensure zero exit code
13 years ago
Julien Nicoulaud
186d80054a
Fix #65 , sourcing the script multiples times should not cause issues anymore
13 years ago
Valodim
f27ef7a279
after exec token we can expect a command
13 years ago
Julien Nicoulaud
0e331cd654
Isolate setup code in functions to ease messing with zsh-syntax-highlighting
13 years ago
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)
13 years ago
Julien Nicoulaud
08dae96eb1
Add highlighter triggered when the user is root
13 years ago
Julien Nicoulaud
11de634b33
Add cursor highlighter
13 years ago
Julien Nicoulaud
4ff08dcfa6
Fix #53 : Prefix all defined functions with _zsh_highlight
13 years ago
Julien Nicoulaud
776453cb5b
Fix #46 : Conflict with url-quote-magic
13 years ago
Julien Nicoulaud
3b27ad778d
More efficient way to strip leading dot
13 years ago
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
13 years ago
Julien Nicoulaud
8b7a6bd24d
Add @garinger to the list of contributors
13 years ago
Julien Nicoulaud
d5cceb2c34
Merge pull request #64 from Valodim/master
don't highlight anymore for long lines
13 years ago
Valodim
5f68accccf
Don't highlight if buffer is longer than $ZSH_HIGHLIGHT_MAXLENGTH
13 years ago
Julien Nicoulaud
8ebce17a11
Merge pull request #63 from garinger/master
Fix for Issue #36 "Brackets of different types matched"
13 years ago
Julien Nicoulaud
a18e43d059
Fix README links
13 years ago
garinger
e7ab165310
* optimize discrimination of bracket-type
* use a nicer variable name
13 years ago
garinger
f1eb5aeef7
skip all brackets inside quotes (" and ')
13 years ago
garinger
2fe9505647
simplify check for bracket under cursor
13 years ago
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
13 years ago
garinger
d4acac9837
eliminate a variable and simplify
13 years ago
garinger
ef74d2b611
Only match brackets of the same type
13 years ago
Julien Nicoulaud
eb749f2681
Merge pull request #62 from garinger/master
Fix for Issue #35 "Unclosed brackets not marked as error"
13 years ago
garinger
48c30a805a
highlight opening bracket with "bracket-error" style, if the closing bracket is still missing
13 years ago
garinger
1858be26bd
exclude .beep
13 years ago
garinger
3802e03b4c
exclude .beep
13 years ago
Julien Nicoulaud
9e75ca0e76
Add @tednaleid to the list of contributors
13 years ago
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`
13 years ago
Julien Nicoulaud
df2fe2a97d
Merge pull request #61 from tednaleid/master
Error: "unrecognized modifier 'A'" on startup for zsh 4.3.9 on OSX
13 years ago
Ted Naleid
4ed9f9a68f
fix for issue #60 , unrecognized modifier 'A' on startup
13 years ago
Julien Nicoulaud
e04f6ab862
Safety checks before looking up cursor position
13 years ago
Julien Nicoulaud
f6af27b8a6
More reliable way to hook precmd
13 years ago
Julien Nicoulaud
52bdb56fdb
Merge pull request #57 from guidovansteen/patch-1
Much easier and less error prone way to start highlighting immediately af
13 years ago
Guido
71e797a8b5
Much easier and less error prone way to start highlighting immediately after the creation of a new command line.
13 years ago
Julien Nicoulaud
bf4fe1f228
Another README link fix
13 years ago
Julien Nicoulaud
1435868740
Another README link fix
13 years ago
Julien Nicoulaud
e7d7ccfe35
Group if statements in f26310d97e
13 years ago
Guido
f26310d97e
* enable command lines starting with a hyphen.
13 years ago
Guido
56801a6b42
* added a workaround to start highlighting immediately after the creation of a new command line.
13 years ago
Julien Nicoulaud
ef4f5ed638
Fix READMEs
13 years ago
Julien Nicoulaud
bb7fcb79fa
Fix #56 : tolerance to WARN_GLOBAL option
13 years ago
Julien Nicoulaud
55e6a85fbb
Merge branch 'master' of github.com:nicoulaj/zsh-syntax-highlighting
Conflicts:
zsh-syntax-highlighting.zsh
13 years ago
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
13 years ago
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.
13 years ago