zsh-syntax-highlighting/highlighters/main/test-data
Daniel Shahaf 5012d771f3 'main': Don't highlight unknown precommand flags as errors.
We cannot now for sure whether the flag is misspelled or simply unknown to us,
so err on the side of caution.  This fixes an unreleased regression.  Fixes #658.

Issue #641 was originally filed about this problem, but is left open to track
further enhancements.
2020-01-14 23:08:50 +00:00
..
abspath-in-command-position1.zsh 'main': Add some tests for complete and partial absolute paths in command position. 2020-01-12 19:29:46 +00:00
abspath-in-command-position2.zsh 'main': Add some tests for complete and partial absolute paths in command position. 2020-01-12 19:29:46 +00:00
abspath-in-command-position3.zsh 'main': Add some tests for complete and partial absolute paths in command position. 2020-01-12 19:29:46 +00:00
abspath-in-command-position4.zsh 'main': Add some tests for complete and partial absolute paths in command position. 2020-01-12 19:29:46 +00:00
abspath-in-command-position5.zsh 'main': Add some tests for complete and partial absolute paths in command position. 2020-01-12 19:29:46 +00:00
alias-assignment1.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
alias-basic.zsh 'main': Add two basic tests for aliases. 2019-12-27 09:37:23 +00:00
alias-command-substitution.zsh main: Add test for previous 2019-11-07 19:59:00 -06:00
alias-comment1.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-comment2.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-complex.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-empty.zsh main: Add alias tests 2018-10-20 20:57:45 -05:00
alias-eponymous1.zsh 'main': Add a regression test for #652. 2019-12-27 09:00:36 +00:00
alias-eponymous2.zsh 'main': Fix issue #652. 2020-01-12 18:34:49 +00:00
alias-loop.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-loop2.zsh 'main': Add two basic tests for aliases. 2019-12-27 09:37:23 +00:00
alias-nested-precommand.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-nested.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-precommand-option-argument1.zsh main: Fix misspelling in test expectation 2019-07-20 10:38:53 -05:00
alias-precommand-option-argument2.zsh main: Fix misspelling in test expectation 2019-07-20 10:38:53 -05:00
alias-precommand-option-argument3.zsh main: Add more alias tests 2019-07-20 10:36:57 -05:00
alias-precommand-option-argument4.zsh main: Add more alias tests 2019-07-20 10:36:57 -05:00
alias-quoted.zsh main: Run the entirety of aliases through the state machine 2018-10-20 20:57:45 -05:00
alias-redirect.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-self.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
alias-to-dir.zsh 'main': Change the issue a test is associated with. 2020-01-12 19:32:44 +00:00
alias-unknown-token1.zsh main: Add more alias tests 2019-07-20 10:36:57 -05:00
alias-unknown-token2.zsh main: Add more alias tests 2019-07-20 10:36:57 -05:00
alias.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
always1.zsh 'main': Highlight 'always' blocks. 2016-09-25 08:11:01 +00:00
always2.zsh 'main': Highlight 'always' blocks. 2016-09-25 08:11:01 +00:00
always3.zsh 'main': Highlight 'always' blocks. 2016-09-25 08:11:01 +00:00
anonymous-function.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
arg0-colon.zsh 'main': Fix a bug concerning command word with embedded colon-space sequences. 2016-11-02 03:16:45 +00: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: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
assign-argv.zsh main: Highlight the value of an assignment 2018-09-30 15:32:19 -04:00
assign-array.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
assign-array2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
assign-array3.zsh main: Highlight the value of an assignment 2018-09-30 15:32:19 -04:00
assign-not-array.zsh main: Highlight the value of an assignment 2018-09-30 15:32:19 -04:00
assign-not-array2.zsh main: Highlight the value of an assignment 2018-09-30 15:32:19 -04:00
assign-semicolon.zsh main: Highlight the value of an assignment 2018-09-30 15:32:19 -04:00
assign-subshell.zsh main: Highlight the value of an assignment 2018-09-30 15:32:19 -04:00
assign-value-quote1.zsh 'main': Don't dequote the word in command position before analyzing it. 2020-01-12 16:11:09 +00:00
assign-value-quote2.zsh 'main': Don't dequote the word in command position before analyzing it. 2020-01-12 16:11:09 +00:00
assign.zsh main: Highlight the value of an assignment 2018-09-30 15:32:19 -04:00
assignment-quoted.zsh 'main': Don't dequote the word in command position before analyzing it. 2020-01-12 16:11:09 +00:00
back-quoted-argument.zsh main: Highlight {command,process} substitution delimiters 2018-09-30 16:26:01 -04:00
back-quoted-open.zsh 'main': Add regression test for an unclosed backtick substitution 2018-09-30 16:26:01 -04:00
backslash-continuation.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
backslash-space.zsh main: Do not skip over backslash floowed by space or tab 2018-09-29 21:33:39 -04:00
backslash.zsh 'main': Add a test for 07f259f653. 2020-01-11 20:46:14 +00:00
bang-assign-array.zsh main: Fix highlighting of the ! precommand after array assignments. Add tests. 2018-10-23 16:31:39 +00:00
bang-assign-scalar.zsh main: Fix highlighting of the ! precommand after array assignments. Add tests. 2018-10-23 16:31:39 +00:00
bang-pipeline.zsh main: Highlight the ! precommand as an error when not at the start of a pipeline. 2018-10-23 16:31:00 +00:00
braces1.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
braces2.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
brackets-matching1.zsh main: Highlight closing brackets 2018-10-21 12:10:07 -05:00
brackets-matching2.zsh main: Highlight closing brackets 2018-10-21 12:10:07 -05:00
brackets-mismatch1.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
brackets-mismatch2.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
brackets-mismatch3.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
brackets-mismatch4.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
brackets-mismatch5.zsh 'main': Yet another test for mismatched braces. 2016-09-25 11:38:52 +00:00
brackets-mismatch6.zsh 'main': Highlight mismatched do/done. 2016-09-25 11:38:54 +00:00
brackets-mismatch7.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
brackets-mismatch8-if-positive.zsh 'main': Highlight mismatched 'if'/'fi'. 2017-03-05 17:33:36 +00:00
brackets-mismatch8.zsh 'main': Permit subshells to end at command position. 2016-09-25 12:06:39 +00:00
brackets-mismatch9-if-positive.zsh 'main': Highlight mismatched 'if'/'fi'. 2017-03-05 17:33:36 +00:00
brackets-mismatch10-if-negative.zsh 'main': Highlight mismatched 'if'/'fi'. 2017-03-05 17:33:36 +00:00
brackets-premature-termination.zsh main: Highlight closing brackets 2018-10-21 12:10:07 -05:00
command-substitution-adjacent.zsh main: Do not highlight empty region between two adjacent $() 2019-07-08 17:05:42 -05:00
command-substitution-in-assignment.zsh main: Distinguish quoted/unquoted command substitutions 2018-10-13 09:37:09 -05:00
command-substitution-unclosed.zsh main: consume trailing whitespace in _highlight_list 2018-10-22 07:53:18 -05:00
commandseparator.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
comment-followed.zsh main: Update test for issue #501 XFAIL 2018-02-10 13:23:42 -06:00
comment-leading.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06: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: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
commmand-parameter.zsh 'main': Highlight array parameters in command position. 2018-10-10 22:20:18 -05:00
control-flow.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
control-flow2.zsh 'main': Fix issue #290, «Mishighlights "longloops" 'repeat'». 2016-05-13 03:30:11 +00:00
control-flow3.zsh tests: Extend issue #290 test with another variant. 2016-05-13 04:28:43 +00:00
cthulhu.zsh main: Distinguish quoted/unquoted command substitutions 2018-10-13 09:37:09 -05:00
dirs_blacklist.zsh main: Drop X_ from X_ZSH_HIGHLIGHT_DIRS_BLACKLIST 2019-07-24 07:27:54 -05:00
dollar-dollar.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
dollar-noise.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
dollar-paren.zsh main: Break double-quoted-argument on command substitutions 2018-10-22 07:53:18 -05:00
dollar-quoted.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
dollar-quoted2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
dollar-quoted3.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
double-hyphen-option.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
double-quoted.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
double-quoted2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
double-quoted3.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
double-quoted4.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
empty-command-newline.zsh 'main': Fix issue #623 by fixing the expectations of the regression test of issue #616. 2019-07-21 01:44:19 +00:00
empty-command.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
empty-command2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
empty-line.zsh main: Simplify proc_buf offset calculation 2018-10-20 23:48:39 -05:00
escaped-single-quote.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
exec-redirection1.zsh 'main': Highlight named fd redirections. 2018-10-22 04:33:11 +00:00
function-altsyntax.zsh 'main': Add a test for issue #237. 2018-10-22 04:58:57 +00:00
function-named1.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
function-named2.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
function.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
glob.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
globs-with-quoting.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
hashed-command.zsh 'main': Use zsh/parameter instead of type -w 2016-05-13 20:25:07 +02:00
history-double-quoted-escaped.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
history-double-quoted-no.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
history-double-quoted-unescaped.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
history-double-quoted-yes.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
history-expansion.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
history-expansion2.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
inheritance.zsh 'main': Enable fallback to the 'arg0' style. 2016-09-28 13:22:29 +00:00
jobsubst-isnt-glob.zsh main: in arguments starting with %?, ? is not a glob 2019-01-06 22:23:10 -06:00
jobsubst-isnt-glob2.zsh Add a test for the 'true negative' case of issue #596. 2018-12-31 17:57:53 +00:00
loop-newline.zsh 'main': Add test for #548 2019-04-19 19:48:01 -05:00
multiline-array-assignment1.zsh dev tools: Remove a superfluous empty line. 2016-09-25 08:11:01 +00:00
multiline-string.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
multiline-string2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
multiple-quotes.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
multiple-redirections.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
noglob-alias.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
noglob-always.zsh main: Add a test for issue #577. 2018-11-01 04:01:05 +00:00
noglob1.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
noglob2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
noglob3.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
noglob4.zsh main: Add another test, inspired by #577 and #502. 2018-11-01 04:01:33 +00:00
number_range-glob.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
off-by-one.zsh main: Stop highlighting alias as its first word too 2019-07-20 10:32:12 -05:00
option-dollar-quote-isnt-filename.zsh 'main': Fix an issue whereby a --option was highlighted as a file 2019-06-16 20:25:34 +00:00
option-path_dirs.zsh 'main': Skip tests that break on msys2 2017-11-06 07:11:55 -06:00
option-with-quotes.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
order-path-after-dollar.zsh 'main': Don't highlight bare '$foo' as a filename, as it's a parameter expansion. 2018-01-21 06:55:31 +00:00
order-path-before-globbing.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
parameter-star.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
pasted-quotes.zsh Add a unit test for dc1b2f6fa4. 2020-01-11 23:04:22 +00:00
path-broken-symlink.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
path-dollared-word.zsh 'main': Add tests for «ls \~» and for not performing parameter expansion on the command word. 2017-12-15 02:35:10 +00:00
path-dollared-word2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
path-dollared-word3.zsh 'main': Following up to the last commit, also highlight braced parameter expansions: «${foo}». 2018-10-10 22:19:41 -05:00
path-dollared-word4.zsh 'main': Add tests for «ls \~» and for not performing parameter expansion on the command word. 2017-12-15 02:35:10 +00:00
path-separators.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
path-separators2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
path-space.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06: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-home2.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
path-tilde-home3.zsh 'main': Add tests for «ls \~» and for not performing parameter expansion on the command word. 2017-12-15 02:35:10 +00: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
path_prefix.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
path_prefix2.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
path_prefix3.zsh main: Add test for previous 2018-03-10 10:25:18 -06:00
precommand-type1.zsh 'main': Use nice for tests in previous 2019-04-04 21:52:51 -05:00
precommand-type2.zsh 'main': Use nice for tests in previous 2019-04-04 21:52:51 -05:00
precommand-type3.zsh 'main': Use nice for tests in previous 2019-04-04 21:52:51 -05:00
precommand-unknown-option.zsh 'main': Don't highlight unknown precommand flags as errors. 2020-01-14 23:08:50 +00:00
precommand.zsh tests: Remove unused_highlight 2016-05-05 12:28:43 -05:00
precommand2.zsh 'main': Highlight the 'command' precommand. 2018-10-10 22:19:41 -05:00
precommand3.zsh 'main': Highlight 'nice'. 2018-10-10 22:19:41 -05:00
precommand4.zsh 'main': Learn $flags_sans_arguments and use that to parse '-xy foo' correctly where -x takes no argument and -y does. 2018-10-10 22:19:41 -05:00
prefix-redirection.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
process-substitution-after-redirection.zsh Add a test for redirection from/to process substitution. 2020-01-11 21:47:34 +00:00
process-substitution-redirection-isnt-globbing.zsh main: Highlight {command,process} substitution delimiters 2018-09-30 16:26:01 -04:00
process-substitution.zsh main: Highlight {command,process} substitution delimiters 2018-09-30 16:26:01 -04:00
process-substitution2.zsh main: consume trailing whitespace in _highlight_list 2018-10-22 07:53:18 -05:00
quoted-command-substitution-empty.zsh main: consume trailing whitespace in _highlight_list 2018-10-22 07:53:18 -05:00
quoted-redirection-in-command-word.zsh 'main': Don't dequote the word in command position before analyzing it. 2020-01-12 16:11:09 +00:00
rc-quotes.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
redirection-comment.zsh main: A redirection token is an invalid redirection target 2017-12-19 23:01:42 -06:00
redirection-in-cmdsubst.zsh main: Distinguish quoted/unquoted command substitutions 2018-10-13 09:37:09 -05:00
redirection-is-not-option.zsh Add a test for 2f03b6d704. 2020-01-11 21:19:52 +00:00
redirection.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
redirection2.zsh main: Highlight {command,process} substitution delimiters 2018-09-30 16:26:01 -04:00
redirection3.zsh main: A redirection token is an invalid redirection target 2017-12-19 23:01:42 -06:00
reserved-word.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06: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: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
sudo-command.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
sudo-comment.zsh Followup to parents: Restore sudo-* tests on platforms that don't have sudo. 2017-12-07 01:16:02 +00:00
sudo-longopt.zsh 'main': Don't highlight unknown precommand flags as errors. 2020-01-14 23:08:50 +00:00
sudo-redirection.zsh Followup to parents: Restore sudo-* tests on platforms that don't have sudo. 2017-12-07 01:16:02 +00:00
sudo-redirection2.zsh Followup to parents: Restore sudo-* tests on platforms that don't have sudo. 2017-12-07 01:16:02 +00:00
sudo-redirection3.zsh Followup to parents: Restore sudo-* tests on platforms that don't have sudo. 2017-12-07 01:16:02 +00:00
tilde-command-word.zsh tests: Specify the style key instead of the style itself 2016-04-29 09:51:13 -05:00
time-and-nocorrect1.zsh 'main': Fix highlighting of the 'time' and 'nocorrect reserved words 2019-12-27 13:47:31 +00:00
time-and-nocorrect2.zsh 'main': Fix highlighting of the 'time' and 'nocorrect reserved words 2019-12-27 13:47:31 +00: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
vi-linewise-mode.zsh tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00