Matthew Martin
|
4748f9bd3d
|
main: Add alias tests
|
2018-10-10 22:26:47 -05:00 |
|
Matthew Martin
|
e3edddd8ec
|
main: alias style overrides precommand style
|
2018-10-10 22:20:19 -05:00 |
|
Matthew Martin
|
c138123397
|
main: Move alias handling up.
This will set style=alias before the great fork.
|
2018-10-10 22:20:19 -05:00 |
|
Matthew Martin
|
57386f30ae
|
main: Recursively expand aliases
|
2018-10-10 22:20:19 -05:00 |
|
Matthew Martin
|
e1ecf950e2
|
main: Do path expanstion after alias expansion
|
2018-10-10 22:20:19 -05:00 |
|
Matthew Martin
|
f46b148c52
|
main: Only expand aliases in command position
|
2018-10-10 22:20:19 -05:00 |
|
Matthew Martin
|
99d7235c2b
|
main: Add test for an alias to a redirection
|
2018-10-10 22:20:19 -05:00 |
|
Matthew Martin
|
05a55108c9
|
main: Expand aliases before looking for redirections
|
2018-10-10 22:20:19 -05:00 |
|
Daniel Shahaf
|
e43e4fd2c7
|
'main': Fix $flags_sans_argument for 'nice'.
Follow-up to 2c15b0e996 ("Learn $flags_sans_arguments…").
|
2018-10-10 22:20:19 -05:00 |
|
Daniel Shahaf
|
a56c33c3be
|
Bump copyright years.
|
2018-10-10 22:20:19 -05:00 |
|
Daniel Shahaf
|
005179ed8e
|
'main': Update $this_word state with our inferences.
Found by code inspection.
|
2018-10-10 22:20:19 -05:00 |
|
Daniel Shahaf
|
0709520597
|
No functional change.
Follow-up to 1fee620e62 .
|
2018-10-10 22:20:19 -05:00 |
|
Daniel Shahaf
|
f7ac43cd49
|
'main': Unify $ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS and $precommand_options.
|
2018-10-10 22:20:19 -05:00 |
|
Daniel Shahaf
|
31ceaed4f4
|
'main': Highlight array parameters in command position.
|
2018-10-10 22:20:18 -05:00 |
|
Daniel Shahaf
|
ad6261fbca
|
'main': Use a more robust way of testing for $parameters' availability.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
3a33ac1d20
|
'main': Break out a new helper function for readability.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
f3425e18fe
|
'main': Let _zsh_highlight_main__type return false on failure.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
82c39716eb
|
'main': Write the "remainder" of the sentence in a comment. No functional change.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
a2e993c59f
|
'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 |
|
Daniel Shahaf
|
bee115f797
|
'main': Correct a comment.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
7f5e11e38b
|
'main': Remove superfluous variable. No functional change.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
78be8f611f
|
'main': Highlight 'doas'.
Fixes #365.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
8b11ca087e
|
'main': Highlight 'nice'.
Fixes #168.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
5694221939
|
'main': Highlight the 'command' precommand.
Fixes #343.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
4c7db4e886
|
'main': Update state machine docs. No functional change.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
add2ac59fc
|
'main': Permit $flags_with_argument to be empty.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
6e8984e2ec
|
'main': Make sudo handling more generic.
Part of issue #343.
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
dbdebfaaa5
|
'main': Following up to the last commit, also highlight braced parameter expansions: «${foo}».
|
2018-10-10 22:19:41 -05:00 |
|
Daniel Shahaf
|
bf055f7df2
|
'main': Fix the last commit's issue concerning parameter expansion at command word.
|
2018-10-10 22:19:36 -05:00 |
|
Daniel Shahaf
|
76d61360a7
|
'main': New XFail test for parameter expansion at command word.
|
2018-10-09 23:28:54 -05:00 |
|
Daniel Shahaf
|
f3410c5862
|
'main': Expand aliases first. (Issue #264.)
This commit causes an alias to an invalid command to be highlighted as an error
(unknown-token).
|
2018-10-09 23:28:54 -05:00 |
|
MinJae Kwon
|
cf88b63523
|
docs: Remove superfluous indentations in code block
|
2018-10-07 14:57:42 +00:00 |
|
Daniel Shahaf
|
565463ca8f
|
'main': Add regression test for an unclosed backtick substitution
|
2018-09-30 16:26:01 -04:00 |
|
Matthew Martin
|
e86f75a840
|
main: Highlight {command,process} substitution delimiters
|
2018-09-30 16:26:01 -04:00 |
|
Matthew Martin
|
22839d08ef
|
main: Return 0 if braces_stack is empty
This allows a caller to know if the command or process substitution is
complete.
|
2018-09-30 15:32:21 -04:00 |
|
Matthew Martin
|
472c71c1fa
|
main: Support the glob_assign option
|
2018-09-30 15:32:21 -04:00 |
|
Matthew Martin
|
9616bfdb20
|
main: Ignore zsh 5.0.8 off by one bug in tests
|
2018-09-30 15:32:21 -04:00 |
|
Matthew Martin
|
8a93b852ca
|
main: Add test for command substitution in assignment
|
2018-09-30 15:32:21 -04:00 |
|
Matthew Martin
|
932eb380e2
|
main: Highlight the value of an assignment
|
2018-09-30 15:32:19 -04:00 |
|
Matthew Martin
|
c06e5e95dc
|
main: Correct array assignment check
|
2018-09-30 15:31:48 -04:00 |
|
Matthew Martin
|
12e01336f1
|
main: Start _highlight_argument at $1
No functional change.
|
2018-09-30 15:21:20 -04:00 |
|
Matthew Martin
|
13d332af95
|
main: Make _check_path's argument explicit
No functional change.
|
2018-09-30 15:21:20 -04:00 |
|
Matthew Martin
|
57e451b531
|
main: Add test for unclosed command substitution
|
2018-09-30 15:21:20 -04:00 |
|
Matthew Martin
|
49dbb05791
|
main: Add test for =( ) process substitution
|
2018-09-30 15:21:20 -04:00 |
|
Matthew Martin
|
c0e64fe131
|
main: Highlight =( ) process substitutions
|
2018-09-30 15:21:19 -04:00 |
|
Matthew Martin
|
73640b79ea
|
main: Change conditional to a switch
Prepares for next commit. No functional change.
|
2018-09-30 14:59:59 -04:00 |
|
Matthew Martin
|
beae08776a
|
main: Add test for embedded process substitution
|
2018-09-30 14:59:59 -04:00 |
|
Matthew Martin
|
08d4401fae
|
main: Highlight <( ) and >( ) process substitutions
Fixes #494
|
2018-09-30 14:59:57 -04:00 |
|
Matthew Martin
|
3ac7d1c785
|
main: Add test for nested backticks; summon Cthulhu
|
2018-09-30 14:59:38 -04:00 |
|
Matthew Martin
|
9db393309e
|
main: Recurse into backtick command substitutions
|
2018-09-30 14:59:36 -04:00 |
|