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