Color commands after ( and ?(

This commit is contained in:
Cheer Xiao 2014-03-17 22:00:35 +08:00
parent c3e9c77c13
commit b0719d087c

View File

@ -56,7 +56,8 @@ func (hl *Highlighter) run() {
}
command = false
variable = false
case parse.ItemSemicolon, parse.ItemPipe, parse.ItemEndOfLine:
case parse.ItemSemicolon, parse.ItemPipe, parse.ItemEndOfLine,
parse.ItemLParen, parse.ItemQuestionLParen:
// NOTE ItemPipe can also be the pipe in {|a b| command...}
command = true
case parse.ItemDollar: