ide: Fixed issuse with highlighting ']'

git-svn-id: svn://ultimatepp.org/upp/trunk@7392 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-05-20 11:54:50 +00:00
parent fb445267da
commit 538d04bfb4

View file

@ -184,8 +184,7 @@ void CSyntax::Highlight(const wchar *ltext, const wchar *e, HighlightOutput& hls
}
else
if(*p == ')' || *p == '}' || *p == ']') {
int bl = brk.GetCount();
int bc = bl ? brk.Pop() : 0;
int bc = brk.GetCount() ? brk.Pop() : 0;
if(*p == '}' && hilite_scope && block_level > 0 && bc)
hls.SetPaper(hls.pos, linelen + 1 - hls.pos, BlockColor(--block_level));
Bracket(int(p - ltext) + pos, hls, editor);