Daniel Shahaf
c30301d474
Drop unnecessary shebang lines.
All these files should be sourced, not executed; and Debian's lintian complains:
W: zsh-syntax-highlighting: script-not-executable usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
9 years ago
Daniel Shahaf
9e80fe8f02
Bump copyright years.
9 years ago
Daniel Shahaf
c46b8d169e
test harness: Fix off-by-one discrepancy between observed and expected.
Fixes issue #195 .
9 years ago
Randy
e8cc271314
Resolves slow performance in brackets highlighter
10 years ago
Jan M. Binder
732b7d6e65
Fix bracket highlighter
12 years ago
Andreas Gahr
b1b65dc486
bracket highlighter: small typo in testcase - document new style
13 years ago
Andreas Gahr
06ad03e32c
bracket highlighter: simplify
13 years ago
Andreas Gahr
8375ef6e72
bracket highlighter: make the style configurable, when cursor is on bracket
13 years ago
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
Andreas Gahr
0d55207c78
simple testcases for bracket highlighter - actually add files
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
garinger
48c30a805a
highlight opening bracket with "bracket-error" style, if the closing bracket is still missing
13 years ago
Julien Nicoulaud
ef4f5ed638
Fix READMEs
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