To: vim-dev@vim.org Subject: Patch 6.1.200 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.200 Problem: ":syn sync fromstart" is not skipped after ":if 0". This can make syntax highlighting very slow. Solution: Check "eap->skip" appropriately. (Rob West) Files: src/syntax.c *** ../vim61.199/src/syntax.c Mon Sep 23 21:15:51 2002 --- src/syntax.c Sat Sep 28 12:12:57 2002 *************** *** 5235,5242 **** } else if (STRCMP(key, "FROMSTART") == 0) { ! curbuf->b_syn_sync_minlines = MAXLNUM; ! curbuf->b_syn_sync_maxlines = 0; } else if (STRCMP(key, "LINECONT") == 0) { --- 5237,5247 ---- } else if (STRCMP(key, "FROMSTART") == 0) { ! if (!eap->skip) ! { ! curbuf->b_syn_sync_minlines = MAXLNUM; ! curbuf->b_syn_sync_maxlines = 0; ! } } else if (STRCMP(key, "LINECONT") == 0) { *** ../vim61.199/src/version.c Fri Sep 27 20:44:09 2002 --- src/version.c Sat Sep 28 12:15:56 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 200, /**/ -- hundred-and-one symptoms of being an internet addict: 84. Books in your bookcase bear the names Bongo, WinSock and Inside OLE /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///