zsh-syntax-highlighting/highlighters/main/test-data
m0viefreak 12b879caf7 'main': Use zsh/parameter instead of type -w
If possible, try to use the zsh/parameter module to get
information about a shell words.

This avoids subshells and is a huge speed improvement
on systems such as cygwin.

Note 1:
$commands does not know about PATH_DIRS. So in case
PATH_DIRS is set, 'type -w' is still used if nothing
else matches.

Note 2:
zsh/parameter can't distinguish between 'command' and
'hashed'. Adjusted the test for that case to XFAIL.

The ideal solution would be if whence had an option to
put the result in REPLY instead of printing it to stdout.
2016-05-13 20:25:07 +02:00
..
alias-assignment1.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
alias.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
anonymous-function.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
arithmetic-evaluation.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
assign-append.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
assign-array.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
assign-semicolon.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
assign-subshell.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
assign.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
back-quoted-argument.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
backslash-continuation.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
commandseparator.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
comment-leading.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
comment-off.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
comments.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
commmand-parameter.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
control-flow.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
dollar-quoted2.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
dollar-quoted3.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
dollar-quoted.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
double-hyphen-option.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
double-quoted2.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
double-quoted3.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
double-quoted4.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
double-quoted.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
empty-command2.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
empty-command.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
exec-redirection1.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
function.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
glob.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
hashed-command.zsh 'main': Use zsh/parameter instead of type -w 2016-05-13 20:25:07 +02:00
history-expansion2.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
history-expansion.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
multiline-string2.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
multiline-string.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
multiple-redirections.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
noglob1.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
noglob2.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
noglob-alias.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
off-by-one.zsh tests: New test to capture off-by-ones. 2016-05-11 20:36:18 +00:00
option-path_dirs.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
path_prefix2.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
path_prefix.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
path-space.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
path-tilde-home2.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
path-tilde-home.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
path-tilde-named.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
path.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
precommand.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
prefix-redirection.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
redirection2.zsh 'main': Fix issue #302, "Process substitution misparsed as redirection". 2016-05-09 03:29:27 +00:00
redirection.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
reserved-word.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
simple-command.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
simple-redirection.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
subshell.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
sudo-command.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
sudo-comment.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
sudo-redirection2.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
sudo-redirection3.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
sudo-redirection.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
tilde-command-word.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
unbackslash.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
unknown-command.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
vanilla-newline.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00