diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-17 20:36:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-17 20:36:00 +0200 |
commit | f5be8cdb77786f93c23237d7d8162feca92067e2 (patch) | |
tree | bf15a34c28e9d52d3e0f56f0627d75d1c87cfcfe /src/testdir/test_vim9_disassemble.vim | |
parent | 98af99f2d79b310e81003f5e27862a7b522d8372 (diff) | |
download | vim-git-f5be8cdb77786f93c23237d7d8162feca92067e2.tar.gz |
patch 8.2.1227: Vim9: allowing both quoted and # comments is confusingv8.2.1227
Problem: Vim9: allowing both quoted and # comments is confusing.
Solution: Only support # comments in Vim9 script.
Diffstat (limited to 'src/testdir/test_vim9_disassemble.vim')
-rw-r--r-- | src/testdir/test_vim9_disassemble.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim index f1f943ecb..186ce6d1c 100644 --- a/src/testdir/test_vim9_disassemble.vim +++ b/src/testdir/test_vim9_disassemble.vim @@ -463,7 +463,7 @@ def Test_disassemble_update_instr() '\d RETURN', res) - " Calling the function will change UCALL into the faster DCALL + # Calling the function will change UCALL into the faster DCALL assert_equal('yes', FuncWithForwardCall()) res = execute('disass s:FuncWithForwardCall') @@ -1073,7 +1073,7 @@ def Test_disassemble_compare() let nr = 1 for case in cases - " declare local variables to get a non-constant with the right type + # declare local variables to get a non-constant with the right type writefile(['def TestCase' .. nr .. '()', ' let isFalse = false', ' let isNull = v:null', @@ -1121,7 +1121,7 @@ def Test_disassemble_compare_const() source Xdisassemble let instr = execute('disassemble TestCase' .. nr) if case[1] - " condition true, "echo 42" executed + # condition true, "echo 42" executed assert_match('TestCase' .. nr .. '.*' .. 'if ' .. substitute(case[0], '[[~]', '\\\0', 'g') .. '.*' .. '\d PUSHNR 42.*' .. @@ -1130,7 +1130,7 @@ def Test_disassemble_compare_const() '\d RETURN.*', instr) else - " condition false, function just returns + # condition false, function just returns assert_match('TestCase' .. nr .. '.*' .. 'if ' .. substitute(case[0], '[[~]', '\\\0', 'g') .. '[ \n]*' .. 'echo 42[ \n]*' .. @@ -1245,7 +1245,7 @@ def Test_vim9script_forward_func() writefile(lines, 'Xdisassemble') source Xdisassemble - " check that the first function calls the second with DCALL + # check that the first function calls the second with DCALL assert_match('\<SNR>\d*_FuncOne\_s*' .. 'return FuncTwo()\_s*' .. '\d DCALL <SNR>\d\+_FuncTwo(argc 0)\_s*' .. |