Karsten Hopp c4482c
To: vim_dev@googlegroups.com
Karsten Hopp c4482c
Subject: Patch 7.4.844
Karsten Hopp c4482c
Fcc: outbox
Karsten Hopp c4482c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c4482c
Mime-Version: 1.0
Karsten Hopp c4482c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c4482c
Content-Transfer-Encoding: 8bit
Karsten Hopp c4482c
------------
Karsten Hopp c4482c
Karsten Hopp c4482c
Patch 7.4.844
Karsten Hopp c4482c
Problem:    When '#' is in 'isident' the is# comparator doesn't work.
Karsten Hopp c4482c
Solution:   Don't use vim_isIDc(). (Yasuhiro Matsumoto)
Karsten Hopp c4482c
Files:      src/eval.c, src/testdir/test_comparators.in,
Karsten Hopp c4482c
            src/testdir/test_comparators.ok, src/testdir/Makefile,
Karsten Hopp c4482c
            src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
Karsten Hopp c4482c
            src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
Karsten Hopp c4482c
            src/testdir/Make_vms.mms
Karsten Hopp c4482c
Karsten Hopp c4482c
Karsten Hopp c4482c
*** ../vim-7.4.843/src/eval.c	2015-08-25 16:48:56.072640146 +0200
Karsten Hopp c4482c
--- src/eval.c	2015-09-01 16:01:08.008531180 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 4431,4437 ****
Karsten Hopp c4482c
  		    {
Karsten Hopp c4482c
  			if (p[2] == 'n' && p[3] == 'o' && p[4] == 't')
Karsten Hopp c4482c
  			    len = 5;
Karsten Hopp c4482c
! 			if (!vim_isIDc(p[len]))
Karsten Hopp c4482c
  			{
Karsten Hopp c4482c
  			    type = len == 2 ? TYPE_EQUAL : TYPE_NEQUAL;
Karsten Hopp c4482c
  			    type_is = TRUE;
Karsten Hopp c4482c
--- 4431,4438 ----
Karsten Hopp c4482c
  		    {
Karsten Hopp c4482c
  			if (p[2] == 'n' && p[3] == 'o' && p[4] == 't')
Karsten Hopp c4482c
  			    len = 5;
Karsten Hopp c4482c
! 			i = p[len];
Karsten Hopp c4482c
! 			if (!isalnum(i) && i != '_')
Karsten Hopp c4482c
  			{
Karsten Hopp c4482c
  			    type = len == 2 ? TYPE_EQUAL : TYPE_NEQUAL;
Karsten Hopp c4482c
  			    type_is = TRUE;
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/test_comparators.in	2015-09-01 16:04:01.606732445 +0200
Karsten Hopp c4482c
--- src/testdir/test_comparators.in	2015-09-01 15:55:25.584077613 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 0 ****
Karsten Hopp c4482c
--- 1,21 ----
Karsten Hopp c4482c
+ " Test for expression comparators.   vim: set ft=vim :
Karsten Hopp c4482c
+ 
Karsten Hopp c4482c
+ 
Karsten Hopp c4482c
+ STARTTEST
Karsten Hopp c4482c
+ :so small.vim
Karsten Hopp c4482c
+ :try
Karsten Hopp c4482c
+ :  let oldisident=&isident
Karsten Hopp c4482c
+ :  set isident+=#
Karsten Hopp c4482c
+ :  if 1 is#1
Karsten Hopp c4482c
+ :    $put ='ok'
Karsten Hopp c4482c
+ :  else
Karsten Hopp c4482c
+ :    $put ='ng'
Karsten Hopp c4482c
+ :  endif
Karsten Hopp c4482c
+ :finally
Karsten Hopp c4482c
+ :  let &isident=oldisident
Karsten Hopp c4482c
+ :endtry
Karsten Hopp c4482c
+ :"
Karsten Hopp c4482c
+ :/^marker/+1,$wq! test.out
Karsten Hopp c4482c
+ ENDTEST
Karsten Hopp c4482c
+ 
Karsten Hopp c4482c
+ marker
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/test_comparators.ok	2015-09-01 16:04:01.610732403 +0200
Karsten Hopp c4482c
--- src/testdir/test_comparators.ok	2015-09-01 15:55:43.527891828 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 0 ****
Karsten Hopp c4482c
--- 1 ----
Karsten Hopp c4482c
+ ok
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/Makefile	2015-08-11 14:26:03.594931131 +0200
Karsten Hopp c4482c
--- src/testdir/Makefile	2015-09-01 15:57:00.607093695 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 42,47 ****
Karsten Hopp c4482c
--- 42,48 ----
Karsten Hopp c4482c
  		test_charsearch.out \
Karsten Hopp c4482c
  		test_close_count.out \
Karsten Hopp c4482c
  		test_command_count.out \
Karsten Hopp c4482c
+ 		test_comparators.out \
Karsten Hopp c4482c
  		test_erasebackword.out \
Karsten Hopp c4482c
  		test_eval.out \
Karsten Hopp c4482c
  		test_fixeol.out \
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/Make_amiga.mak	2015-08-11 14:26:03.594931131 +0200
Karsten Hopp c4482c
--- src/testdir/Make_amiga.mak	2015-09-01 15:56:34.279366321 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 45,50 ****
Karsten Hopp c4482c
--- 45,51 ----
Karsten Hopp c4482c
  		test_charsearch.out \
Karsten Hopp c4482c
  		test_close_count.out \
Karsten Hopp c4482c
  		test_command_count.out \
Karsten Hopp c4482c
+ 		test_comparators.out \
Karsten Hopp c4482c
  		test_erasebackword.out \
Karsten Hopp c4482c
  		test_eval.out \
Karsten Hopp c4482c
  		test_fixeol.out \
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 198,203 ****
Karsten Hopp c4482c
--- 199,205 ----
Karsten Hopp c4482c
  test_charsearch.out: test_charsearch.in
Karsten Hopp c4482c
  test_close_count.out: test_close_count.in
Karsten Hopp c4482c
  test_command_count.out: test_command_count.in
Karsten Hopp c4482c
+ test_comparators.out: test_comparators.in
Karsten Hopp c4482c
  test_erasebackword.out: test_erasebackword.in
Karsten Hopp c4482c
  test_eval.out: test_eval.in
Karsten Hopp c4482c
  test_increment.out: test_increment.in
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/Make_dos.mak	2015-08-11 14:26:03.594931131 +0200
Karsten Hopp c4482c
--- src/testdir/Make_dos.mak	2015-09-01 15:56:40.607300797 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 44,49 ****
Karsten Hopp c4482c
--- 44,50 ----
Karsten Hopp c4482c
  		test_charsearch.out \
Karsten Hopp c4482c
  		test_close_count.out \
Karsten Hopp c4482c
  		test_command_count.out \
Karsten Hopp c4482c
+ 		test_comparators.out \
Karsten Hopp c4482c
  		test_erasebackword.out \
Karsten Hopp c4482c
  		test_eval.out \
Karsten Hopp c4482c
  		test_fixeol.out \
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/Make_ming.mak	2015-08-11 14:26:03.594931131 +0200
Karsten Hopp c4482c
--- src/testdir/Make_ming.mak	2015-09-01 15:56:44.631259125 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 66,71 ****
Karsten Hopp c4482c
--- 66,72 ----
Karsten Hopp c4482c
  		test_charsearch.out \
Karsten Hopp c4482c
  		test_close_count.out \
Karsten Hopp c4482c
  		test_command_count.out \
Karsten Hopp c4482c
+ 		test_comparators.out \
Karsten Hopp c4482c
  		test_erasebackword.out \
Karsten Hopp c4482c
  		test_eval.out \
Karsten Hopp c4482c
  		test_fixeol.out \
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/Make_os2.mak	2015-08-11 14:26:03.594931131 +0200
Karsten Hopp c4482c
--- src/testdir/Make_os2.mak	2015-09-01 15:56:46.683237882 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 46,51 ****
Karsten Hopp c4482c
--- 46,52 ----
Karsten Hopp c4482c
  		test_charsearch.out \
Karsten Hopp c4482c
  		test_close_count.out \
Karsten Hopp c4482c
  		test_command_count.out \
Karsten Hopp c4482c
+ 		test_comparators.out \
Karsten Hopp c4482c
  		test_erasebackword.out \
Karsten Hopp c4482c
  		test_eval.out \
Karsten Hopp c4482c
  		test_fixeol.out \
Karsten Hopp c4482c
*** ../vim-7.4.843/src/testdir/Make_vms.mms	2015-08-11 14:26:03.594931131 +0200
Karsten Hopp c4482c
--- src/testdir/Make_vms.mms	2015-09-01 15:56:50.363199776 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 4,10 ****
Karsten Hopp c4482c
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp c4482c
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp c4482c
  #
Karsten Hopp c4482c
! # Last change:  2015 Aug 11
Karsten Hopp c4482c
  #
Karsten Hopp c4482c
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp c4482c
  # Edit the lines in the Configuration section below to select.
Karsten Hopp c4482c
--- 4,10 ----
Karsten Hopp c4482c
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp c4482c
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp c4482c
  #
Karsten Hopp c4482c
! # Last change:  2015 Sep 01
Karsten Hopp c4482c
  #
Karsten Hopp c4482c
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp c4482c
  # Edit the lines in the Configuration section below to select.
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 105,110 ****
Karsten Hopp c4482c
--- 105,111 ----
Karsten Hopp c4482c
  	 test_charsearch.out \
Karsten Hopp c4482c
  	 test_close_count.out \
Karsten Hopp c4482c
  	 test_command_count.out \
Karsten Hopp c4482c
+ 	 test_comparators.out \
Karsten Hopp c4482c
  	 test_erasebackword.out \
Karsten Hopp c4482c
  	 test_eval.out \
Karsten Hopp c4482c
  	 test_fixeol.out \
Karsten Hopp c4482c
*** ../vim-7.4.843/src/version.c	2015-08-27 22:30:43.548873347 +0200
Karsten Hopp c4482c
--- src/version.c	2015-09-01 15:59:22.845620563 +0200
Karsten Hopp c4482c
***************
Karsten Hopp c4482c
*** 743,744 ****
Karsten Hopp c4482c
--- 743,746 ----
Karsten Hopp c4482c
  {   /* Add new patch number below this line */
Karsten Hopp c4482c
+ /**/
Karsten Hopp c4482c
+     844,
Karsten Hopp c4482c
  /**/
Karsten Hopp c4482c
Karsten Hopp c4482c
-- 
Karsten Hopp c4482c
TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT
Karsten Hopp c4482c
                      SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE
Karsten Hopp c4482c
                      KILLED BY THE RABBIT)
Karsten Hopp c4482c
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp c4482c
Karsten Hopp c4482c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c4482c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c4482c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c4482c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///