Mercurial > vim
comparison src/testdir/test_textprop.vim @ 22127:9d3dfd420a45 v8.2.1613
patch 8.2.1613: Vim9: cannot pass "true" to prop_type_add()
Commit: https://github.com/vim/vim/commit/fa2e38df76b3e0919dc01dd1836257dce0ba62b1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 5 21:00:00 2020 +0200
patch 8.2.1613: Vim9: cannot pass "true" to prop_type_add()
Problem: Vim9: cannot pass "true" to prop_type_add().
Solution: Use tv_get_bool(). (closes https://github.com/vim/vim/issues/6850)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Sep 2020 21:15:04 +0200 |
parents | 602e660d5ccf |
children | d55008685870 |
comparison
equal
deleted
inserted
replaced
22126:4d6795e03a8d | 22127:9d3dfd420a45 |
---|---|
318 call assert_fails("call prop_remove({'type': 'three', 'both': 1})", 'E860:') | 318 call assert_fails("call prop_remove({'type': 'three', 'both': 1})", 'E860:') |
319 | 319 |
320 call DeletePropTypes() | 320 call DeletePropTypes() |
321 bwipe! | 321 bwipe! |
322 endfunc | 322 endfunc |
323 | |
324 def Test_prop_add_vim9() | |
325 prop_type_add('comment', #{ | |
326 highlight: 'Directory', | |
327 priority: 123, | |
328 start_incl: true, | |
329 end_incl: true, | |
330 combine: false, | |
331 }) | |
332 prop_type_delete('comment') | |
333 enddef | |
323 | 334 |
324 def Test_prop_remove_vim9() | 335 def Test_prop_remove_vim9() |
325 new | 336 new |
326 call AddPropTypes() | 337 call AddPropTypes() |
327 call SetupPropsInFirstLine() | 338 call SetupPropsInFirstLine() |