forked from aniani/vim
Problem: When '#' is in 'isident' the is# comparator doesn't work. Solution: Don't use vim_isIDc(). (Yasuhiro Matsumoto)
22 lines
283 B
Plaintext
22 lines
283 B
Plaintext
" 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
|