瀏覽代碼

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

pull/232/head
Daniel Shahaf 9 年之前
父節點
當前提交
c216242b46
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      highlighters/main/main-highlighter.zsh

+ 6
- 1
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

Loading…
取消
儲存