]>
Commit | Line | Data |
---|---|---|
51f9884c AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.426 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.2.426 | |
11 | Problem: A syntax region end match with a matchgroup that includes a line | |
12 | break only highlights the last line with matchgroup. (Gary | |
13 | Holloway) | |
14 | Solution: Also use the line number of the position where the region | |
15 | highlighting ends. | |
16 | Files: src/syntax.c | |
17 | ||
18 | ||
19 | *** ../vim-6.2.425/src/syntax.c Sat Mar 20 17:59:44 2004 | |
20 | --- src/syntax.c Thu Apr 1 15:39:07 2004 | |
21 | *************** | |
22 | *** 2791,2798 **** | |
23 | hl_endpos->col = startpos->col; | |
24 | limit_pos(hl_endpos, m_endpos); | |
25 | ||
26 | ! /* now the match ends where the highlighting ends (why?) */ | |
27 | ! m_endpos->col = hl_endpos->col; | |
28 | } | |
29 | else | |
30 | { | |
31 | --- 2791,2799 ---- | |
32 | hl_endpos->col = startpos->col; | |
33 | limit_pos(hl_endpos, m_endpos); | |
34 | ||
35 | ! /* now the match ends where the highlighting ends, it is turned | |
36 | ! * into the matchgroup for the end */ | |
37 | ! *m_endpos = *hl_endpos; | |
38 | } | |
39 | else | |
40 | { | |
41 | *** ../vim-6.2.425/src/version.c Thu Apr 1 14:49:42 2004 | |
42 | --- src/version.c Thu Apr 1 15:41:51 2004 | |
43 | *************** | |
44 | *** 639,640 **** | |
45 | --- 639,642 ---- | |
46 | { /* Add new patch number below this line */ | |
47 | + /**/ | |
48 | + 426, | |
49 | /**/ | |
50 | ||
51 | -- | |
52 | hundred-and-one symptoms of being an internet addict: | |
53 | 225. You sign up for free subscriptions for all the computer magazines | |
54 | ||
55 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
56 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
57 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
58 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |