To: vim-dev@vim.org Subject: Patch 5.5.071 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.071 Problem: Using a matchgroup in a ":syn region", which is the same syntax group as the region, didn't stop a contained item from matching in the start pattern. Solution: Also push an item on the stack when the syntax ID of the matchgroup is the same as the syntax ID of the region. Files: src/syntax.c *** ../vim-5.5.70/src/syntax.c Sun Oct 31 15:12:59 1999 --- src/syntax.c Thu Dec 16 15:57:45 1999 *************** *** 1630,1636 **** */ if ( spp->sp_type == SPTYPE_START && spp->sp_syn_match_id != 0 - && spp->sp_syn_id != spp->sp_syn_match_id && push_current(next_match_idx) == OK) { cur_si = &CUR_STATE(current_state.ga_len - 1); --- 1630,1635 ---- *** ../vim-5.5.70/src/version.c Thu Dec 16 15:56:47 1999 --- src/version.c Thu Dec 16 15:56:15 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 71, -- [SIR LAUNCELOT runs back up the stairs, grabs a rope of the wall and swings out over the heads of the CROWD in a swashbuckling manner towards a large window. He stops just short of the window and is left swing pathetically back and forth.] LAUNCELOT: Excuse me ... could somebody give me a push ... "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /