jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.549

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.549
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.549
3ef2ca
Problem:    Function name not recognized correctly when inside a function.
3ef2ca
Solution:   Don't check for an alpha character.
3ef2ca
Files:      src/eval.c, src/testdir/test_nested_function.in,
3ef2ca
            src/testdir/test_nested_function.ok, src/testdir/Make_amiga.mak,
3ef2ca
            src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
3ef2ca
            src/testdir/Make_os2.mak, src/testdir/Make_vms.mms,
3ef2ca
            src/testdir/Makefile
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.548/src/eval.c	2014-12-07 00:18:27.524203161 +0100
3ef2ca
--- src/eval.c	2014-12-13 20:27:16.728347709 +0100
3ef2ca
***************
3ef2ca
*** 22283,22296 ****
3ef2ca
  		if (*p == '!')
3ef2ca
  		    p = skipwhite(p + 1);
3ef2ca
  		p += eval_fname_script(p);
3ef2ca
! 		if (ASCII_ISALPHA(*p))
3ef2ca
  		{
3ef2ca
! 		    vim_free(trans_function_name(&p, TRUE, 0, NULL));
3ef2ca
! 		    if (*skipwhite(p) == '(')
3ef2ca
! 		    {
3ef2ca
! 			++nesting;
3ef2ca
! 			indent += 2;
3ef2ca
! 		    }
3ef2ca
  		}
3ef2ca
  	    }
3ef2ca
  
3ef2ca
--- 22283,22293 ----
3ef2ca
  		if (*p == '!')
3ef2ca
  		    p = skipwhite(p + 1);
3ef2ca
  		p += eval_fname_script(p);
3ef2ca
! 		vim_free(trans_function_name(&p, TRUE, 0, NULL));
3ef2ca
! 		if (*skipwhite(p) == '(')
3ef2ca
  		{
3ef2ca
! 		    ++nesting;
3ef2ca
! 		    indent += 2;
3ef2ca
  		}
3ef2ca
  	    }
3ef2ca
  
3ef2ca
*** ../vim-7.4.548/src/testdir/test_nested_function.in	2014-12-13 21:00:22.243356614 +0100
3ef2ca
--- src/testdir/test_nested_function.in	2014-12-13 20:21:18.080145982 +0100
3ef2ca
***************
3ef2ca
*** 0 ****
3ef2ca
--- 1,34 ----
3ef2ca
+ Tests for Nested function                vim: set ft=vim :
3ef2ca
+ 
3ef2ca
+ STARTTEST
3ef2ca
+ :so small.vim
3ef2ca
+ :fu! NestedFunc()
3ef2ca
+ :  fu! Func1()
3ef2ca
+ :    $put ='Func1'
3ef2ca
+ :  endfunction
3ef2ca
+ :  call Func1()
3ef2ca
+ :  fu! s:func2()
3ef2ca
+ :    $put ='s:func2'
3ef2ca
+ :  endfunction
3ef2ca
+ :  call s:func2()
3ef2ca
+ :  fu! s:_func3()
3ef2ca
+ :    $put ='s:_func3'
3ef2ca
+ :  endfunction
3ef2ca
+ :  call s:_func3()
3ef2ca
+ :  let fn = 'Func4'
3ef2ca
+ :  fu! {fn}()
3ef2ca
+ :    $put ='Func4'
3ef2ca
+ :  endfunction
3ef2ca
+ :  call {fn}()
3ef2ca
+ :  let fn = 'func5'
3ef2ca
+ :  fu! s:{fn}()
3ef2ca
+ :    $put ='s:func5'
3ef2ca
+ :  endfunction
3ef2ca
+ :  call s:{fn}()
3ef2ca
+ :endfunction
3ef2ca
+ :call NestedFunc()
3ef2ca
+ :/^result:/,$w! test.out
3ef2ca
+ :qa!
3ef2ca
+ ENDTEST
3ef2ca
+ 
3ef2ca
+ result:
3ef2ca
*** ../vim-7.4.548/src/testdir/test_nested_function.ok	2014-12-13 21:00:22.251356529 +0100
3ef2ca
--- src/testdir/test_nested_function.ok	2014-12-13 20:21:44.215867748 +0100
3ef2ca
***************
3ef2ca
*** 0 ****
3ef2ca
--- 1,6 ----
3ef2ca
+ result:
3ef2ca
+ Func1
3ef2ca
+ s:func2
3ef2ca
+ s:_func3
3ef2ca
+ Func4
3ef2ca
+ s:func5
3ef2ca
*** ../vim-7.4.548/src/testdir/Make_amiga.mak	2014-12-08 04:16:26.253702999 +0100
3ef2ca
--- src/testdir/Make_amiga.mak	2014-12-13 20:23:59.554425738 +0100
3ef2ca
***************
3ef2ca
*** 47,52 ****
3ef2ca
--- 47,53 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_mapping.out \
3ef2ca
+ 		test_nested_function.out \
3ef2ca
  		test_options.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
  		test_signs.out \
3ef2ca
***************
3ef2ca
*** 184,189 ****
3ef2ca
--- 185,192 ----
3ef2ca
  test_insertcount.out: test_insertcount.in
3ef2ca
  test_listlbr.out: test_listlbr.in
3ef2ca
  test_listlbr_utf8.out: test_listlbr_utf8.in
3ef2ca
+ test_mapping.out: test_mapping.in
3ef2ca
+ test_nested_function.out: test_nested_function.in
3ef2ca
  test_options.out: test_options.in
3ef2ca
  test_qf_title.out: test_qf_title.in
3ef2ca
  test_signs.out: test_signs.in
3ef2ca
*** ../vim-7.4.548/src/testdir/Make_dos.mak	2014-12-08 04:16:26.253702999 +0100
3ef2ca
--- src/testdir/Make_dos.mak	2014-12-13 20:24:11.946293504 +0100
3ef2ca
***************
3ef2ca
*** 46,51 ****
3ef2ca
--- 46,52 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_mapping.out \
3ef2ca
+ 		test_nested_function.out \
3ef2ca
  		test_options.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
  		test_signs.out \
3ef2ca
*** ../vim-7.4.548/src/testdir/Make_ming.mak	2014-12-08 04:16:26.253702999 +0100
3ef2ca
--- src/testdir/Make_ming.mak	2014-12-13 20:24:17.058237473 +0100
3ef2ca
***************
3ef2ca
*** 68,73 ****
3ef2ca
--- 68,74 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_mapping.out \
3ef2ca
+ 		test_nested_function.out \
3ef2ca
  		test_options.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
  		test_signs.out \
3ef2ca
*** ../vim-7.4.548/src/testdir/Make_os2.mak	2014-12-08 04:16:26.253702999 +0100
3ef2ca
--- src/testdir/Make_os2.mak	2014-12-13 20:24:21.598190646 +0100
3ef2ca
***************
3ef2ca
*** 48,53 ****
3ef2ca
--- 48,54 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_mapping.out \
3ef2ca
+ 		test_nested_function.out \
3ef2ca
  		test_options.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
  		test_signs.out \
3ef2ca
*** ../vim-7.4.548/src/testdir/Make_vms.mms	2014-12-08 04:16:26.253702999 +0100
3ef2ca
--- src/testdir/Make_vms.mms	2014-12-13 20:24:29.302110051 +0100
3ef2ca
***************
3ef2ca
*** 4,10 ****
3ef2ca
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
3ef2ca
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
3ef2ca
  #
3ef2ca
! # Last change:  2014 Dec 08
3ef2ca
  #
3ef2ca
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
3ef2ca
  # Edit the lines in the Configuration section below to select.
3ef2ca
--- 4,10 ----
3ef2ca
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
3ef2ca
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
3ef2ca
  #
3ef2ca
! # Last change:  2014 Dec 13
3ef2ca
  #
3ef2ca
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
3ef2ca
  # Edit the lines in the Configuration section below to select.
3ef2ca
***************
3ef2ca
*** 107,112 ****
3ef2ca
--- 107,113 ----
3ef2ca
  	 test_listlbr.out \
3ef2ca
  	 test_listlbr_utf8.out \
3ef2ca
  	 test_mapping.out \
3ef2ca
+ 	 test_nested_function.out \
3ef2ca
  	 test_options.out \
3ef2ca
  	 test_qf_title.out \
3ef2ca
  	 test_signs.out \
3ef2ca
*** ../vim-7.4.548/src/testdir/Makefile	2014-12-08 04:16:26.253702999 +0100
3ef2ca
--- src/testdir/Makefile	2014-12-13 20:24:42.609966838 +0100
3ef2ca
***************
3ef2ca
*** 44,49 ****
3ef2ca
--- 44,50 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_mapping.out \
3ef2ca
+ 		test_nested_function.out \
3ef2ca
  		test_options.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
  		test_signs.out \
3ef2ca
*** ../vim-7.4.548/src/version.c	2014-12-13 20:50:01.793994592 +0100
3ef2ca
--- src/version.c	2014-12-13 20:56:11.850046569 +0100
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     549,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Engineers are always delighted to share wisdom, even in areas in which they
3ef2ca
have no experience whatsoever.  Their logic provides them with inherent
3ef2ca
insight into any field of expertise.  This can be a problem when dealing with
3ef2ca
the illogical people who believe that knowledge can only be derived through
3ef2ca
experience.
3ef2ca
				(Scott Adams - The Dilbert principle)
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///