8.0 KiB
up to d37c55c788
Changes in version 0.5.0
Added highlighting of:
-
'pkexec' (a precommand). (#248,
4f3910cbba) -
Aliases that cannot be defined normally nor invoked normally (highlighted as an error). (#263 (in part),
28932316cc) -
The
isearchandsuffix$zle_highlightsettings. (79e4d3d12405; requires zsh 5.3 for$ISEARCHMATCH_ACTIVE/$SUFFIX_ACTIVEsupport)
Fixed highlighting of:
-
Command separator tokens in syntactically-invalid positions. (
09c4114eb9) -
Redirections with a file descriptor number at command word. (#238 (in part),
73ee7c1f6c) -
The
selectprompt,$PS3. (#268,451665cb2a) -
Values of variables in
vared. (e500ca2462) -
!as an argument (neither a history expansion nor a reserved word). (4c23a2fd1b) -
"division by zero" error under the
bracketshighlighter when$ZSH_HIGHLIGHT_STYLESis empty. (f73f3d53d3) -
Process substitutions,
<(pwd)and>(wc -l). (#302,6889ff6bd2,bfabffbf97,fc9c892a3f)
API changes (for highlighter authors):
-
New interface
_zsh_highlight_add_highlight. (341a3ae1f0,c346f6eb6f) -
tests: Specify the style key, not its value, in test expectations. (
a830613467,fd061b5730,eaa4335c34, among others) -
Module author documentation improvements. (#306 (in part),
2176692704,0ff354b44b, and others)
Developer-visible changes:
-
Add
make quiet-test. (9b64ad750f) -
test harness: Better quote replaceables in error messages. (
30d8f92df2) -
test harness: Fix exit code for XPASS. (
bb8d325c0c) -
tests: Add the "NONE" expectation. (
4da9889d15,13018f3dd7,d37c55c788) -
Create HACKING.md.
-
tests: Emit a description for PASS test points. (
6aa57d60aa,f0bae44b76) -
tests: consider a test that writes to stderr to have failed. (#291,
1082067f93)
Other changes:
-
Under zsh≤5.2, widgets whose names start with a
_are no longer excluded from highlighting. (ed33d2cb1388; reverts part of186d80054awhich was for #65) -
Under zsh≤5.2, widgets implemented by a function named after the widget are no longer excluded from highlighting. (487b122c480d; reverts part of
776453cb5b) -
Under zsh≤5.2, shell-unsafe widget names can now be wrapped. (#278,
6a634fac9f, et seq) -
Correct some test expectations. (
78290e043b) -
zsh-syntax-highlighting.plugin.zsh: Convert from symlink to plain file for msys2 compatibility. (#292,d4f8edc9f3) -
Document installation under some plugin managers. (
e635f766be,9cab566f53) -
Don't leak the
PATH_DIRSoption. (7b82b88a71)
Changes in version 0.4.1
Fixes:
- Arguments to widgets were not properly dash-escaped. Only matters for widgets
that take arguments (i.e., that are invoked as
zle ${widget} -- ${args}). (282c7134e8, revertsc808d2187a)
Changes in version 0.4.0
Added highlighting of:
-
incomplete sudo commands (
a3047a9121,2f05620b19)sudo; sudo -u; -
command words following reserved words (#207, #222,
b397b12ac1et seq,6fbd2aa957et seq,8b4adbd991)if ls; then ls; else ls; fi repeat 10 do ls; done(The
lsare now highlighted as a command.) -
comments (when
INTERACTIVE_COMMENTSis set) (#163, #167,693de99a90)echo Hello # comment -
closing brackets of arithmetic expansion, subshells, and blocks (#226,
a59f442d2d, et seq)(( foo )) ( foo ) { foo } -
command names enabled by the
PATH_DIRSoption (#228,96ee5116b1)# When ~/bin/foo/bar exists, is executable, ~/bin is in $PATH, # and 'setopt PATH_DIRS' is in effect foo/bar -
parameter expansions with braces inside double quotes (#186,
6e3720f39d)echo "${foo}" -
parameter expansions in command word (#101,
4fcfb15913)x=/bin/ls $x -l -
the command separators '|&', '&!', '&|'
view file.pdf &! ls
Fixed highlighting of:
-
precommand modifiers at non-command-word position (#209,
2c9f8c8c95)ls command foo -
sudo commands with infix redirections (#221,
be006aded5,86e9249709)sudo -u >/tmp/foo.out user ls -
subshells; anonymous functions (#166, #194,
0d1bfbcbfa,9e178f9f39)(true) () { true } -
parameter assignment statements with no command (#205,
01d7eeb3c7)A=1;(The semicolon used to be highlighted as a mistake)
-
cursor highlighter: Remove the cursor highlighting when accepting a line. (#109,
4f0c293fde)
Removed features:
- Removed highlighting of approximate paths (
path_approx). (#187,98aee7f8b9)
Other changes:
-
main highlighter refactored to use states rather than booleans. (
2080a441ac, et seq) -
Fix initialization when sourcing
zsh-syntax-highlighting.zshvia a symlink (083c47b007) -
docs: Add screenshot. (
57624bb9f6) -
widgets wrapping: Don't add '--' when invoking widgets. (
c808d2187a) [reverted in 0.4.1] -
Refresh highlighting upon
accept-*widgets (accept-lineet al). (59fbdda64c) -
Stop leaking match/mbegin/mend to global scope (thanks to upstream
WARN_CREATE_GLOBALimprovements). (d3deffbf46) -
'make install': Permit setting
$(SHARE_DIR)from the environment. (e1078a8b4c) -
driver: Tolerate KSH_ARRAYS being set in the calling context. (#162,
8f19af6b31) -
'make install': Install documentation fully and properly. (#219,
b1619c0013, et seq) -
docs: Improve 'main' highlighter's documentation. (
00de155063,7d4252f5f5) -
docs: Moved to a new docs/ tree; assorted minor updates (
c575f8f375,5b34c23cfa, et seq) -
docs: Split README.md into INSTALL.md (
0b3183f6cb) -
driver: Report
$ZSH_HIGHLIGHT_REVISIONwhen running from git (84734ba950)
Developer-visible changes:
-
Test harness converted to TAP format (
d99aa58aaa, et seq) -
Run each test in a separate subprocess, isolating them from each other (
d99aa58aaa, et seq) -
Fix test failure with nonexisting $HOME (#216,
b2ac98b981) -
Test output is now colorized. (
4d3da30f8b,6fe07c0961) -
Document
make install(a18a7427fd) -
tests: Allow specifying the zsh binary to use. (
557bb7e0c6) -
tests: Add 'make perf' target (
4513eaea71) -
tests: Run each test in a sandbox directory (
c015339202)
Changes in version 0.3.0
Added highlighting of:
-
suffix aliases (requires zsh 5.1.1 or newer):
alias -s png=display foo.png -
prefix redirections:
<foo.txt cat -
redirection operators:
echo > foo.txt -
arithmetic evaluations:
(( 42 )) -
$'' strings, including \x/\octal/\u/\U escapes
: $'foo\u0040bar' -
multiline strings:
% echo "line 1 line 2" -
string literals that haven't been finished:
% echo "Hello, world -
command words that involve tilde expansion:
% ~/bin/foo
Fixed highlighting of:
-
quoted command words:
% \ls -
backslash escapes in "" strings:
% echo "\x41" -
noglob after command separator:
% :; noglob echo * -
glob after command separator, when the first command starts with 'noglob':
% noglob true; echo * -
the region (vi visual mode / set-mark-command) (issue #165)
-
redirection and command separators that would be highlighted as
path_approx% echo foo;‸ % echo <‸(where
‸represents the cursor location) -
escaped globbing (outside quotes)
% echo \*
Other changes:
-
implemented compatibility with zsh's paste highlighting (issue #175)
-
$?propagated correctly to wrapped widgets -
don't leak $REPLY into global scope
Developer-visible changes:
-
added makefile with
installandtesttargets -
set
warn_create_globalinternally -
document release process
Version 0.2.1
(Start of changelog.)