Skip to content

Commit c216242

Browse files
committed
command word: Highlight more reserved words. Part of issue #207.
1 parent 2218e26 commit c216242

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

highlighters/main/main-highlighter.zsh

+6-1
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,18 @@ _zsh_highlight_main_highlighter()
9999
)
100100

101101
# Tokens that, at (naively-determined) "command position", are followed by
102-
# a de jure command position.
102+
# a de jure command position. All of these are reserved words.
103103
ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW=(
104104
'while'
105+
'until'
105106
'if'
106107
'then'
108+
'elif'
107109
'else'
108110
'do'
111+
'time'
112+
'coproc'
113+
'!' # reserved word; unrelated to $histchars[1]
109114
)
110115

111116
# State machine

0 commit comments

Comments
 (0)