Ver a proveniência

command word: Highlight more reserved words. Part of issue #207.

pull/232/head
Daniel Shahaf há 9 anos
ascendente
cometimento
c216242b46
1 ficheiros alterados com 6 adições e 1 eliminações
  1. +6
    -1
      highlighters/main/main-highlighter.zsh

+ 6
- 1
highlighters/main/main-highlighter.zsh Ver ficheiro

@ -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

Carregando…
Cancelar
Guardar