From 2e17e221229263c45dceb86d792c41dac76c28b8 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 20 Jul 2002 09:12:55 +0000 Subject: [PATCH] * syntax.c (apply_rules_going_right): Recheck keyword rules when a keyword is found on the left border of a context. --- edit/ChangeLog | 5 +++++ edit/syntax.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 6b4c6a9c0..0705bb238 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,8 @@ +2002-07-20 Pavel Roskin + + * 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 * syntax.c (edit_get_syntax_color): Return colorpair index, not diff --git a/edit/syntax.c b/edit/syntax.c index 8e9921c84..b57dc8f35 100644 --- a/edit/syntax.c +++ b/edit/syntax.c @@ -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; } }