zsh-users/zsh-syntax-highlighting

Highlight trailing garbage as error

Open

#296 opened on Apr 22, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Shell (1,371 forks)batch import
Improvementgood first issue

Repository metrics

Stars
 (22,617 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

% if :; then fi
% if :; then fi foobar
zsh: parse error near `foobar'
% for arg; do done    
% for arg; do done fobar
zsh: parse error near `fobar'

The foobar should be highlighted as an error ([unknown-token]).

Contributor guide