diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-04-20 01:34:29 -0400 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-20 01:34:29 -0400 |
| commit | cd10cdd1b4957eeb1240cc013a904f5a1a25e878 (patch) | |
| tree | 8d307d7775b190128a64c3263ccbf15d4a95ac90 /src/nvim/testdir/test_viml.vim | |
| parent | 5c6592fdab6c0618d218e14438de50afe585f7e0 (diff) | |
| parent | 02fa6b18d6da55f0738d1cd97d462032c9135cd6 (diff) | |
| download | rneovim-cd10cdd1b4957eeb1240cc013a904f5a1a25e878.tar.gz rneovim-cd10cdd1b4957eeb1240cc013a904f5a1a25e878.tar.bz2 rneovim-cd10cdd1b4957eeb1240cc013a904f5a1a25e878.zip | |
Merge pull request #4589 from gregorias/patch_1113
vim-patch: 7.4.1113
Diffstat (limited to 'src/nvim/testdir/test_viml.vim')
| -rw-r--r-- | src/nvim/testdir/test_viml.vim | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_viml.vim b/src/nvim/testdir/test_viml.vim index 5d65953a9e..9f0618bd45 100644 --- a/src/nvim/testdir/test_viml.vim +++ b/src/nvim/testdir/test_viml.vim @@ -1,5 +1,5 @@ " Test various aspects of the Vim language. -" This was formerly in test49. +" Most of this was formerly in test49. "------------------------------------------------------------------------------- " Test environment {{{1 @@ -908,6 +908,22 @@ endfunc "------------------------------------------------------------------------------- +" Test 16: Recognizing {} in variable name. {{{1 +"------------------------------------------------------------------------------- + +func Test_curlies() + let s:var = 66 + let ns = 's' + call assert_equal(66, {ns}:var) + + let g:a = {} + let g:b = 't' + let g:a[g:b] = 77 + call assert_equal(77, g:a['t']) +endfunc + + +"------------------------------------------------------------------------------- " Modelines {{{1 " vim: ts=8 sw=4 tw=80 fdm=marker " vim: fdt=substitute(substitute(foldtext(),\ '\\%(^+--\\)\\@<=\\(\\s*\\)\\(.\\{-}\\)\:\ \\%(\"\ \\)\\=\\(Test\ \\d*\\)\:\\s*',\ '\\3\ (\\2)\:\ \\1',\ \"\"),\ '\\(Test\\s*\\)\\(\\d\\)\\D\\@=',\ '\\1\ \\2',\ "") |