mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* syntax.c (apply_rules_going_right): Recheck keyword rules when
a keyword is found on the left border of a context.
This commit is contained in:
parent
8f4ca50c58
commit
2e17e22122
@ -1,3 +1,8 @@
|
||||
2002-07-20 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* syntax.c (apply_rules_going_right): Recheck keyword rules when
|
||||
a keyword is found on the left border of a context.
|
||||
|
||||
2002-07-14 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* syntax.c (edit_get_syntax_color): Return colorpair index, not
|
||||
|
@ -290,8 +290,10 @@ static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i,
|
||||
_rule.border = RULE_ON_LEFT_BORDER;
|
||||
_rule._context = count;
|
||||
if (!r->between_delimiters)
|
||||
if (!_rule.keyword)
|
||||
if (!_rule.keyword) {
|
||||
_rule.context = count;
|
||||
contextchanged = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user