* 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:
Pavel Roskin 2002-07-20 09:12:55 +00:00
parent 8f4ca50c58
commit 2e17e22122
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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;
}
}