diff src/syntax.c @ 2831:30b7cde21940 v7.3.190

updated for version 7.3.190 Problem: When there is a "containedin" syntax argument highlighting may be wrong. (Radek) Solution: Reset current_next_list. (Ben Schmidt)
author Bram Moolenaar <bram@vim.org>
date Thu, 19 May 2011 12:14:10 +0200
parents c5e47b752f07
children 8d8bd6307b1a
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2566,6 +2566,9 @@ check_state_ends()
 #endif
 		update_si_attr(current_state.ga_len - 1);
 
+		/* nextgroup= should not match in the end pattern */
+		current_next_list = NULL;
+
 		/* what matches next may be different now, clear it */
 		next_match_idx = 0;
 		next_match_col = MAXCOL;