Skip to content

Highlight command and process substitution #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Sep 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8a0ffe1
main: Allow for patterned fallbacks
phy1729 Mar 13, 2018
b1eb035
main: Move fallback calculation to a function
phy1729 Mar 13, 2018
49cc5e2
main: Simplify interface to __stack_pop
phy1729 Mar 10, 2018
dbce731
main: Add buf_offset variable
phy1729 Mar 10, 2018
81e89a8
main: Reorder declarations for next commit
phy1729 Mar 10, 2018
ead8f8a
main: Split highlighting code into another function
phy1729 Mar 10, 2018
ce592bd
main: Move highlighting to _main_paint
phy1729 Mar 10, 2018
b751695
main: Highlight command substitutions
phy1729 Mar 10, 2018
c40c72c
main: Track if $buf has the end of $BUFFER
phy1729 Mar 21, 2018
9db3933
main: Recurse into backtick command substitutions
phy1729 Mar 13, 2018
3ac7d1c
main: Add test for nested backticks; summon Cthulhu
phy1729 Mar 15, 2018
08d4401
main: Highlight <( ) and >( ) process substitutions
phy1729 Mar 10, 2018
beae087
main: Add test for embedded process substitution
phy1729 Mar 10, 2018
73640b7
main: Change conditional to a switch
phy1729 Mar 15, 2018
c0e64fe
main: Highlight =( ) process substitutions
phy1729 Mar 15, 2018
49dbb05
main: Add test for =( ) process substitution
phy1729 Mar 15, 2018
57e451b
main: Add test for unclosed command substitution
phy1729 Mar 15, 2018
13d332a
main: Make _check_path's argument explicit
phy1729 Mar 22, 2018
12e0133
main: Start _highlight_argument at $1
phy1729 Mar 22, 2018
c06e5e9
main: Correct array assignment check
phy1729 Mar 22, 2018
932eb38
main: Highlight the value of an assignment
phy1729 Mar 22, 2018
8a93b85
main: Add test for command substitution in assignment
phy1729 Mar 28, 2018
9616bfd
main: Ignore zsh 5.0.8 off by one bug in tests
phy1729 Apr 5, 2018
472c71c
main: Support the glob_assign option
phy1729 Apr 14, 2018
22839d0
main: Return 0 if braces_stack is empty
phy1729 Apr 14, 2018
e86f75a
main: Highlight {command,process} substitution delimiters
phy1729 Apr 14, 2018
565463c
'main': Add regression test for an unclosed backtick substitution
danielshahaf Sep 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/highlighters/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ This highlighter defines the following styles:
* `path_prefix_pathseparator` - path separators in prefixes of existing filenames (`/`); if unset, `path_prefix` is used (default)
* `globbing` - globbing expressions (`*.txt`)
* `history-expansion` - history expansion expressions (`!foo` and `^foo^bar`)
* `command-substitution` - command substitutions (`$(echo foo)`)
* `command-substitution-delimiter` - command substitution delimiters (`$(` and `)`)
* `process-substitution` - process substitutions (`<(echo foo)`)
* `process-substitution-delimiter` - process substitution delimiters (`<(` and `)`)
* `single-hyphen-option` - single-hyphen options (`-o`)
* `double-hyphen-option` - double-hyphen options (`--option`)
* `back-quoted-argument` - backtick command substitution (`` `foo` ``)
* `back-quoted-argument-unclosed` - unclosed backtick command substitution (`` `foo ``)
* `back-quoted-argument-delimiter` - backtick command substitution delimiters (`` ` ``)
* `single-quoted-argument` - single-quoted arguments (`` 'foo' ``)
* `single-quoted-argument-unclosed` - unclosed single-quoted arguments (`` 'foo ``)
* `double-quoted-argument` - double-quoted arguments (`` "foo" ``)
Expand Down
Loading