Skip to content

Commit

Permalink
command word: Highlight more reserved words. Part of issue sorin-ione…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielshahaf committed Oct 29, 2015
1 parent 2218e26 commit c216242
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion highlighters/main/main-highlighter.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,18 @@ _zsh_highlight_main_highlighter()
)

# Tokens that, at (naively-determined) "command position", are followed by
# a de jure command position.
# a de jure command position. All of these are reserved words.
ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW=(
'while'
'until'
'if'
'then'
'elif'
'else'
'do'
'time'
'coproc'
'!' # reserved word; unrelated to $histchars[1]
)

# State machine
Expand Down

0 comments on commit c216242

Please sign in to comment.