1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Syntax "extend" doesn't work correctly.
12 Solution: Avoid calling check_state_ends() recursively (Ben Schmidt)
16 *** ../mercurial/vim73/src/syntax.c 2011-05-19 12:14:03.000000000 +0200
17 --- src/syntax.c 2011-05-25 17:47:46.000000000 +0200
21 * previous line and regions that have "keepend".
23 if (current_state.ga_len > 0)
25 syn_update_ends(TRUE);
39 /****************************************
46 ! int had_extend = FALSE;
48 cur_si = &CUR_STATE(current_state.ga_len - 1);
56 cur_si = &CUR_STATE(current_state.ga_len - 1);
61 /* When the ended item has "extend", another item with
62 * "keepend" now needs to check for its end. */
63 ! if (cur_si->si_flags & HL_EXTEND)
70 /* When the ended item has "extend", another item with
71 * "keepend" now needs to check for its end. */
72 ! had_extend = (cur_si->si_flags & HL_EXTEND);
76 *** ../vim-7.3.204/src/version.c 2011-05-25 17:29:40.000000000 +0200
77 --- src/version.c 2011-05-25 17:52:57.000000000 +0200
81 { /* Add new patch number below this line */
87 hundred-and-one symptoms of being an internet addict:
88 110. You actually volunteer to become your employer's webmaster.
90 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
91 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
92 \\\ an exciting new programming language -- http://www.Zimbu.org ///
93 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///