view src/testdir/test_comparators.vim @ 27499:df414fc12eed v8.2.4277

patch 8.2.4277: Vim9: an import does not shadow a command modifier Commit: https://github.com/vim/vim/commit/68854a82fdedebf6ee0675d1abeae6fc627ff6bb Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 31 18:59:13 2022 +0000 patch 8.2.4277: Vim9: an import does not shadow a command modifier Problem: Vim9: an import does not shadow a command modifier. Solution: Do not accept a command modifier followed by a dot.
author Bram Moolenaar <Bram@vim.org>
date Mon, 31 Jan 2022 20:00:06 +0100
parents 08940efa6b4e
children
line wrap: on
line source

" Test for comparators

function Test_Comparators()
  try
    let oldisident=&isident
    set isident+=#
    call assert_equal(1, 1 is#1)
  finally
    let &isident=oldisident
  endtry
endfunction

" vim: shiftwidth=2 sts=2 expandtab