Skip to content

Commit aecfd61

Browse files
committed
'main': Support the 'env' precommand.
1 parent 2904e0f commit aecfd61

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
- Highlight directories in command position correctly, including `AUTO_CD` support
7272
[#669]
7373

74+
- Recognize `env` as a precommand (e.g., `env FOO=bar ls`)
75+
7476
# Changes in version 0.7.1
7577

7678
- Remove out-of-date information from the 0.7.0 changelog.

highlighters/main/main-highlighter.zsh

+2
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ _zsh_highlight_highlighter_main_paint()
347347
'catchsegv' ''
348348
'nohup' ''
349349
'setsid' :wc
350+
'env' u:i
351+
350352
# As of OpenSSH 8.1p1
351353
'ssh-agent' aEPt:csDd:k
352354
# suckless-tools v44

highlighters/main/test-data/multiline-array-assignment1.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ expected_region_highlight=(
3535
'6 6 commandseparator' # \n
3636
'7 9 default' # bar
3737
'10 10 assign' # )
38-
'12 14 command' # env
38+
'12 14 precommand' # env
3939
)

0 commit comments

Comments
 (0)