home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.179 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.1 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.179
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.179
  11. Problem:    C-indent doesn't handle colon in string correctly.
  12. Solution:   Skip the string. (Lech Lorens)
  13. Files:        src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
  14.  
  15.  
  16. *** ../vim-7.3.178/src/misc1.c    2011-05-10 11:39:13.000000000 +0200
  17. --- src/misc1.c    2011-05-10 11:50:14.000000000 +0200
  18. ***************
  19. *** 5801,5807 ****
  20.           continue;
  21.       }
  22.   
  23. !     if (s[0] == ':')
  24.       {
  25.           if (s[1] == ':')
  26.           {
  27. --- 5801,5809 ----
  28.           continue;
  29.       }
  30.   
  31. !     if (s[0] == '"')
  32. !         s = skip_string(s) + 1;
  33. !     else if (s[0] == ':')
  34.       {
  35.           if (s[1] == ':')
  36.           {
  37. *** ../vim-7.3.178/src/testdir/test3.in    2011-05-10 11:39:13.000000000 +0200
  38. --- src/testdir/test3.in    2011-05-10 11:53:02.000000000 +0200
  39. ***************
  40. *** 1360,1365 ****
  41. --- 1360,1378 ----
  42.   }
  43.   
  44.   STARTTEST
  45. + :set cino&
  46. + 2kdd=][
  47. + ENDTEST
  48. + void func(void)
  49. + {
  50. +     cout << "a"
  51. +     << "b"
  52. +     << ") :"
  53. +     << "c";
  54. + }
  55. + STARTTEST
  56.   :g/^STARTTEST/.,/^ENDTEST/d
  57.   :1;/start of AUTO/,$wq! test.out
  58.   ENDTEST
  59. *** ../vim-7.3.178/src/testdir/test3.ok    2011-05-10 11:39:13.000000000 +0200
  60. --- src/testdir/test3.ok    2011-05-10 11:50:14.000000000 +0200
  61. ***************
  62. *** 1216,1218 ****
  63. --- 1216,1227 ----
  64.       printf("Foo!\n");
  65.   }
  66.   
  67. + void func(void)
  68. + {
  69. +     cout << "a"
  70. +         << "b"
  71. +         << ") :"
  72. +         << "c";
  73. + }
  74. *** ../vim-7.3.178/src/version.c    2011-05-10 11:39:13.000000000 +0200
  75. --- src/version.c    2011-05-10 11:53:36.000000000 +0200
  76. ***************
  77. *** 716,717 ****
  78. --- 716,719 ----
  79.   {   /* Add new patch number below this line */
  80. + /**/
  81. +     179,
  82.   /**/
  83.  
  84. -- 
  85. hundred-and-one symptoms of being an internet addict:
  86. 71. You wonder how people walk
  87.  
  88.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  89. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  90. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  91.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  92.