Problem: When '#' is in 'isident' the is# comparator doesn't work.
Solution: Don't use vim_isIDc(). (Yasuhiro Matsumoto)
{
if (p[2] == 'n' && p[3] == 'o' && p[4] == 't')
len = 5;
- if (!vim_isIDc(p[len]))
+ i = p[len];
+ if (!isalnum(i) && i != '_')
{
type = len == 2 ? TYPE_EQUAL : TYPE_NEQUAL;
type_is = TRUE;
test_charsearch.out \
test_close_count.out \
test_command_count.out \
+ test_comparators.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
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
test_charsearch.out \
test_close_count.out \
test_command_count.out \
+ test_comparators.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
test_charsearch.out \
test_close_count.out \
test_command_count.out \
+ test_comparators.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
test_charsearch.out \
test_close_count.out \
test_command_count.out \
+ test_comparators.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
#
-# Last change: 2015 Aug 11
+# 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.
test_charsearch.out \
test_close_count.out \
test_command_count.out \
+ test_comparators.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
test_charsearch.out \
test_close_count.out \
test_command_count.out \
+ test_comparators.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
--- /dev/null
+" 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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 844,
/**/
843,
/**/