Daniel Shahaf
18df692ae6
widget binding: Remove some too-wide exclusions
* m0vie/p_bindings:
widget binding: don't exlude widgets with identical function name
widget binding: don't exclude widgets starting with '_'
8 years ago
m0viefreak
487b122c48
widget binding: don't exclude widgets with identical function name
Skipping when $cur_widgets == user:$cur_widget was introduced
with 776453cb5b
. However there
are cases where this is not just an 'already rebound' event, but
simply a normal widget whose function name happens to be identical
to its widget name.
Example:
expand-absolute-path is a widget whose function name is also
expand-absolute-path. No reason why this should be ignored.
Another example:
edit-command-line
8 years ago
Daniel Shahaf
7044c1986e
docs: use https:// instead of git://
8 years ago
Vishnu Ks
bdb23d1378
use https instead of git for url
8 years ago
Daniel Shahaf
e500ca2462
'main': Don't highlight in vared
This is a continuation of 451665cb2a
which did
the same for the $PS3 prompt.
Reported-by: Sebastian Gniazdowski
8 years ago
Daniel Shahaf
e938825a85
Merge pull request #272 from psprint/master
Optimization: -1 is extra computation of string length internally
8 years ago
Sebastian Gniazdowski
3cb58fd7d7
Optimization: -1 is extra computation of string length internally
./parse.zsh "zplugin.zsh" > out_norm.txt 106,17s user 7,84s system 98% cpu 1:55,85 total
./parse.zsh "zplugin.zsh" > out_opt.txt 51,91s user 7,44s system 99% cpu 59,912 total
% wc -l zplugin.zsh
3188 zplugin.zsh
8 years ago
Daniel Shahaf
683f4837a0
changelog: Update for upcoming 0.4.1 release.
8 years ago
Daniel Shahaf
62a6be3d63
Version number bump.
Have master self-describe as 0.5.0-dev, since an 0.4.1 release is upcoming on
another branch.
8 years ago
Daniel Shahaf
451665cb2a
'main': Don't highlight at the $PS3 prompt.
The input to the $PS3 prompt is not commands, so the 'main' highlighter is
not applicable to it.
Fixes zsh-users/zsh-syntax-highlighting#268 .
8 years ago
Daniel Shahaf
30d8f92df2
test harness: Properly quote error message interpolations.
No functional change, except that error messages are now more readable.
8 years ago
Daniel Shahaf
282c7134e8
Revert "wrapping: Don't add '--' when invoking widgets."
The '--' guard was correct; it was there to guard against arguments belonging
to the syntax «zle widget [ -n num ] [ -Nw ] [ -K keymap ] args».
For example, this affected using <backward-kill-word> over
BUFFER="-w "
CURSOR=3
after
autoload -Uz select-word-style
select-word-style default
zstyle ':zle:backward-kill-word' word-style shell
.
This reverts commit c808d2187a
.
8 years ago
Daniel Shahaf
28932316cc
aliases: Highlight aliases with '=' in their LHS as error. (Part of issue #263.)
8 years ago
Daniel Shahaf
5e4b446dee
aliases: Add a test for one variant of issue #263 .
8 years ago
Daniel Shahaf
9b64ad750f
tests: Add a 'print failures only' mode to 'make test', called 'make quiet-test'.
Fixes zsh-users/zsh-syntax-highlighting#262 .
Currently, 'make quiet-test' uses Perl. However, since it is considered a development
tool rather than a user-facing tool, users and downstream packages needn't install Perl.
Furthermore, even this dev-only dependency may be dropped in the future.
The only difference between tests/tap-filter here and the one in the issue is using
a `cat` subshell v. using 'undef $/; <STDIN>'.
8 years ago
Daniel Shahaf
936e2e9314
tests: Add another comment. No functional change.
8 years ago
m0viefreak
ed33d2cb13
widget binding: don't exclude widgets starting with '_'
Just because a widget starts with _ does not mean it should be
skipped when rebinding. The only reason widgets need to be skipped
is when their function name start with _zsh_highlight_widget*,
which is checked later.
Example:
_expand_alias (^Xa) needs to be wrapped.
The exclusion of _* was introduced in 186d80054a
to fix #65 , but it is not needed. The relevant exclusion of
_zsh_highlight_widget* is already enough due to the case statement.
8 years ago
Daniel Shahaf
268656d52b
tests: Add a comment. No functional change.
8 years ago
Daniel Shahaf
38c3ac8831
docs: Note that Debian package has migrated to (been added to) Debian stretch.
8 years ago
Daniel Shahaf
82f5eb17ec
docs: Note Debian package name.
The Debian package should propagate to the "testing" suite (stretch) in a few days.
8 years ago
Daniel Shahaf
4f3910cbba
Fix issue #248 : Highlight 'pkexec' as a precommand.
8 years ago
Daniel Shahaf
73ee7c1f6c
Fix part of issue #238 , "fd redirections at command word".
This fixes fd's specified by a (single) digit. The named fd syntax remains an XFail.
8 years ago
Daniel Shahaf
48ecd29180
tests: Add two XFail tests for issue #238 , "fd redirections at command word".
8 years ago
Daniel Shahaf
430cf55368
tests: Cover [default].
8 years ago
Daniel Shahaf
46cd970bc4
tests: Improve tests by using $unused_highlight.
The default for [redirection] is 'none', so it wasn't actually being tested.
8 years ago
Daniel Shahaf
09c4114eb9
command word: Do not attempt to interpret command separator tokens as anything else.
The important part of this change is removing the second conjunct from the
condition; the remainder of the change gives one example of when that matters.
8 years ago
Daniel Shahaf
cf685a3a27
changelog: Start 0.4.1 section.
Also fix an error in the title of the 0.4.0 section.
8 years ago
Daniel Shahaf
69b6c4e450
release.md: Clarify release procedure.
8 years ago
Daniel Shahaf
7338c54a25
Post-release version number bump.
9 years ago
Daniel Shahaf
2d792b03bb
Tag version 0.4.0.
8 years ago
Daniel Shahaf
eee130f81d
changelog: Update through HEAD ( 952a97dbc9
).
9 years ago
Daniel Shahaf
952a97dbc9
docs: Tweaks to highlighters.md after recent refactoring branch.
Merge remote-tracking branch 'danielsh/docs-highlighters.d-landing-page-v3'
* danielsh/docs-highlighters.d-landing-page-v3:
docs: Restore (with changes) links removed in f5ca4b891b
.
docs: Followup to the recent docs branch: clean up some internal cross-references.
docs: Clarify tagline summary of 'root' highlighter
docs: Minor clarification.
Fixes zsh-users/zsh-syntax-highlighting#242 .
8 years ago
Daniel Shahaf
1f1ad09e38
docs: Restore (with changes) links removed in f5ca4b891b
.
The preceding commit, which made docs/highlighters.md and
highlighters/README.md distinct, allows reverting their removal.
8 years ago
Daniel Shahaf
eb3715a56a
docs: Followup to the recent docs branch: clean up some internal cross-references.
8 years ago
Daniel Shahaf
95330c691b
docs: Clarify tagline summary of 'root' highlighter
8 years ago
Daniel Shahaf
371f8183d6
docs: Minor clarification.
8 years ago
Daniel Shahaf
2e5481ab9a
docs; INSTALL.md: Make 'system-wide' section easier to read.
8 years ago
Daniel Shahaf
2ed2f1e3c4
docs: INSTALL.md: Streamling .zshrc installation instructions.
8 years ago
Daniel Shahaf
b8ced86853
docs: Minor clarifications.
8 years ago
Daniel Shahaf
84734ba950
versionstamp: Better $ZSH_HIGHLIGHT_REVISION reporting when running from git.
8 years ago
Daniel Shahaf
635a68f7b4
driver: Fix error message wording
8 years ago
Daniel Shahaf
438a94496f
docs: Grammar fix.
8 years ago
Daniel Shahaf
7ee350efcd
docs: Port new text to individual highlighters' documentation.
The new text is from the preceding two commits, 22123ab622
+ ded1c8789b
.
Fixes a broken link.
8 years ago
Daniel Shahaf
22123ab622
docs: Follow-up to last: Fix markup.
8 years ago
Daniel Shahaf
ded1c8789b
docs: Clarify highlighters documentation.
8 years ago
Daniel Shahaf
0b3183f6cb
docs: Split README.md into INSTALL.md.
Fixes zsh-users/zsh-syntax-highlighting#235 .
8 years ago
Matthew Martin
8e115052e9
docs: Fix broken symlinks
8 years ago
Daniel Shahaf
5b34c23cfa
Merge remote-tracking branch 'phy1729/doc-all'
* phy1729/doc-all:
Remove broken links
docs: Create all.md
docs: Move docs into docs/
docs: Remove duplicate 'How to activate it' sections
docs: Move highlighter headers down one level
8 years ago
Daniel Shahaf
c575f8f375
Merge remote-tracking branch 'danielsh/docs-copyedit-v1'
* danielsh/docs-copyedit-v1:
docs copyedit: minor: Spelling/punctuation fix.
docs copyedit: Rewrap to 80 columns, part 4.
docs copyedit: Rewrap to 80 columns, part 3.
docs copyedit: Rewrap to 80 columns, part 2.
docs copyedit: Clarify tagline.
docs copyedit: minor.
docs copyedit: Review toplevel and tests README.md files.
docs copyedit: Rewrap to 80 columns.
docs copyedit: Restyle bold-italic to fixed-width.
docs copyedit: Port 6d93ea07fd
to the other highlighters' README's.
docs copyedit: Whitespace.
8 years ago
Matthew Martin
f5ca4b891b
Remove broken links
8 years ago