From c216242b462eb3a71b7f4b2fea2fc9750914cd45 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 28 Oct 2015 20:44:49 +0200 Subject: [PATCH] command word: Highlight more reserved words. Part of issue #207. --- highlighters/main/main-highlighter.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 45f24e6948..f222877c9c 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -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