mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-29 22:32:38 -06:00
ide: Fixed issuse with highlighting ']'
git-svn-id: svn://ultimatepp.org/upp/trunk@7392 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fb445267da
commit
538d04bfb4
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue