Daniel Shahaf
186536705b
tests: path-tilde-named.zsh: Fix expectations
The path string ends at offset 26, not 23.
9 years ago
Daniel Shahaf
547b8be304
test harness: Fix off-by-one discrepancy between observed and expected.
Fixes zsh-users/zsh-syntax-highlighting#195 .
The one revision made on master between this branch's creation and merge
already uses correct offsets.
* danielsh/i195-tests-offbyone-v1:
New test for dollar-double-quoted-argument.
test harness: Fix off-by-one discrepancy between observed and expected.
9 years ago
Daniel Shahaf
80587e5419
New test for dollar-double-quoted-argument.
This exercises the previous patch.
9 years ago
Daniel Shahaf
c46b8d169e
test harness: Fix off-by-one discrepancy between observed and expected.
Fixes issue #195 .
9 years ago
Daniel Shahaf
a8afbdf2f5
Support $''-quoted strings.
This does not yet highlight backslash escapes within them.
9 years ago
Daniel Shahaf
6d93ea07fd
main highlighter docs: README: Tweak.
9 years ago
Daniel Shahaf
4f5a0fe60b
main highlighter docs: Give examples of styles.
9 years ago
Daniel Shahaf
e5c2a88db0
Highlight yanks/pastes on top of syntax highlighting.
Let $zle_highlight[paste] override $region_highlight.
9 years ago
Daniel Shahaf
0e31d6e1a2
Highlight the region on top of syntax highlighting.
Let $zle_highlight[region] override $region_highlight.
9 years ago
Daniel Shahaf
555e142e66
suffix aliases: Highlight differently.
Add an underline, since they are at command word position but will be executed
by something else.
Suggested-by: Daniel Hahler
9 years ago
Daniel Shahaf
e13c5a1611
Highlight 'noglob' correctly in more cases.
Fixes zsh-users/zsh-syntax-highlighting#189 .
9 years ago
Daniel Shahaf
8515b7e0c5
Highlight ? as globbing.
Fixes zsh-users/zsh-syntax-highlighting#94 .
9 years ago
Daniel Shahaf
dc701501e5
Highlight ? as globbing.
Fixes zsh-users/zsh-syntax-highlighting#94 .
9 years ago
Daniel Shahaf
9310d8ae71
Support suffix aliases
Fixes zsh-users/zsh-syntax-highlighting#126 .
9 years ago
Daniel Shahaf
b3ceea8511
Highlight 'noglob' correctly in more cases.
Fixes zsh-users/zsh-syntax-highlighting#189 .
9 years ago
Daniel Shahaf
a0b5bc6c71
Fix bug in previous commit ( d330b49b33
)
'local' is a reserved word in zsh 5.1 but not in earlier versions [1].
Therefore, under zsh older than 5.1, quoting is required.
This manifested as random «builtin=''» in emitted to the terminal, and
commands (such as 'echo') highlighted as errors (in red).
[1] https://github.com/zsh-users/zsh/blob/master/README#L46
(the section "Incompatibilites between 5.0.8 and 5.1")
9 years ago
Daniel Shahaf
d330b49b33
Fix variable leakage into global namespace.
Similar to zsh-users/zsh-syntax-highlighting#97 .
9 years ago
Daniel Shahaf
f78919d941
Preserve $? of wrapped widgets.
9 years ago
Daniel Shahaf
eaffd88793
docs: Document homebrew package name.
Fixes zsh-users/zsh-syntax-highlighting#156 .
9 years ago
Daniel Shahaf
546a5288e2
multiline strings: Add a second test for commit ff4d402e9a
9 years ago
Daniel Shahaf
8e7c26f489
Do wrap the 'yank' widget, because that works.
Partly reverts eb9870f4db
which was PR #143 to
fix issue #99 .
9 years ago
Daniel Shahaf
7f41967a17
Highlight array appends: foo+=(bar baz).
Fixes zsh-users/zsh-syntax-highlighting#181 .
9 years ago
Daniel Shahaf
13a8db1d71
tests: exit non-zero upon failure
9 years ago
Daniel Shahaf
51aed8a765
Merge remote-tracking branch 'upstream/pr/179'
* upstream/pr/179:
Don't parse first word of array assignment as command
9 years ago
Daniel Shahaf
42495cc5d6
Merge remote-tracking branch 'upstream/pr/161'
* upstream/pr/161:
Don't highlight prefix redirections as error
9 years ago
Daniel Shahaf
ea81e3df6e
Merge remote-tracking branch 'upstream/pr/159'
* upstream/pr/159:
Support literal newlines, part 2
Update comments. No functional change.
Highlight the first part of multiline strings correctly
Support literal newlines
Support backslash continuations
Support multiline strings
Refactoring, no functional change
9 years ago
Daniel Shahaf
c2b9327b07
Support literal newlines, part 2
9 years ago
Daniel Shahaf
52ece975c3
Update comments. No functional change.
9 years ago
Daniel Shahaf
7ee9df915d
Merge remote-tracking branch 'origin/pr/158'
* origin/pr/158:
README: give the rationale for the at-end-of-.zshrc requirement
9 years ago
Daniel Shahaf
85b3446897
README: make installation step 1 more accurate
Based on a patch by George Angelopoulos <george@usermod.net>.
Closes #149 .
9 years ago
Daniel Shahaf
b9b67b9f78
Don't parse first word of array assignment as command
Fixes zsh-users/zsh-syntax-highlighting#178
9 years ago
Daniel Shahaf
359d48bf78
Don't highlight prefix redirections as error
Fixes zsh-users/zsh-syntax-highlighting#146
9 years ago
Daniel Shahaf
ff4d402e9a
Highlight the first part of multiline strings correctly
Given the following input:
PREBUFFER=$'echo "foo\n'
BUFFER='bar"'
This patch causes the '"foo' part to be highlighted as a string. There
is no test because the tests only check highlighting of BUFFER, and 'bar"'
is already highlighted correctly.
9 years ago
Daniel Shahaf
384be15b13
Support literal newlines
9 years ago
Daniel Shahaf
23cacb12fe
Support backslash continuations
9 years ago
Daniel Shahaf
667495bfb7
Support multiline strings
9 years ago
Daniel Shahaf
2c5acaefa9
Refactoring, no functional change
The new function will be used in the next commit.
9 years ago
Daniel Shahaf
0c8c4b73f8
README: give the rationale for the at-end-of-.zshrc requirement
9 years ago
George Angelopoulos
a723f504a5
README: make installation step 1 more accurate
You cannot download just the "script". You need the entire directory/repo.
10 years ago
nicoulaj
3dc5741900
Merge pull request #140 from randomize/pr_fix_issue_#77
Pr fix issue #77
10 years ago
nicoulaj
10391d025a
Merge pull request #134 from sonnym/enable_quick_history_substitution_highlighting
highlight ^old^new pattern
10 years ago
nicoulaj
443908b9a2
Merge pull request #142 from jcassee/master
Add 'line' highlighter for the whole buffer
10 years ago
nicoulaj
eb9870f4db
Merge pull request #143 from vincentbernat/fix/yank-pop
zle: don't override yank/yank-pop
10 years ago
Vincent Bernat
74a183447d
zle: don't override yank/yank-pop
`yank-pop` relies on the fact that the last zle command is `yank` or
`yank-pop` to work correctly. Rewriting them prevents this check to work
correctly breaking `yank-pop`.
This fix just disallow overriding of those two zle commands. As a
side-effect, syntax highlighting will not happen when using.
This fixes #99 .
10 years ago
Joost Cassee
d7d4dff1c8
Add 'line' highlighter for the whole buffer
10 years ago
Randy
7edd08156e
Chaned main highlighter alorithm to resolve issue #77
10 years ago
Randy
e8cc271314
Resolves slow performance in brackets highlighter
10 years ago
Julien Nicoulaud
5320f1e18d
Merge pull request #135 from arcan1s/patch-1
Update README.md
10 years ago
Evgeniy Alexeev
dcb5da9457
Update README.md
Edited links to Archlinux packages (the link to `zsh-syntax-highlighting-git` is out-of-date, and `zsh-syntax-highlighting` is now available in [community])
10 years ago
Julien Nicoulaud
c83e266888
#110 : Now using :A modifier, bump zsh version requirement
10 years ago