To: vim-dev@vim.org Subject: Patch 5.8.007 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.8.007 Problem: With syntax highlighting, synchronizing on a C-comment failed after "//*/". Solution: Check for the "*/" being just after "//". Files: src/search.c *** ../vim-5.8.006/src/search.c Mon Jun 4 22:16:13 2001 --- src/search.c Sat Jun 30 12:27:13 2001 *************** *** 1564,1570 **** { if (count > 0) pos = match_pos; ! else if (pos.col > 1 && linep[pos.col - 2] == '/') pos.col -= 2; else if (ignore_cend) continue; --- 1564,1571 ---- { if (count > 0) pos = match_pos; ! else if (pos.col > 1 && linep[pos.col - 2] == '/' ! && (int)pos.col <= comment_col) pos.col -= 2; else if (ignore_cend) continue; *** ../vim-5.8.006/src/version.c Sat Jun 30 12:29:59 2001 --- src/version.c Sat Jun 30 12:29:36 2001 *************** *** 439,440 **** --- 439,442 ---- { /* Add new patch number below this line */ + /**/ + 7, /**/ -- I wonder how much deeper the ocean would be without sponges. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///