vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
" Tests for ->method()
|
|
|
|
|
2021-10-05 10:58:06 -07:00
|
|
|
source check.vim
|
|
|
|
|
2021-08-06 10:58:27 -07:00
|
|
|
func Test_list_method()
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
let l = [1, 2, 3]
|
|
|
|
call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4))
|
2021-08-06 09:09:47 -07:00
|
|
|
eval l->assert_equal(l)
|
|
|
|
eval l->assert_equal(l, 'wrong')
|
|
|
|
eval l->assert_notequal([3, 2, 1])
|
|
|
|
eval l->assert_notequal([3, 2, 1], 'wrong')
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_equal(l, l->copy())
|
2021-08-07 14:39:23 -07:00
|
|
|
call assert_equal(l, l->deepcopy())
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_equal(1, l->count(2))
|
|
|
|
call assert_false(l->empty())
|
|
|
|
call assert_true([]->empty())
|
2021-08-06 09:09:47 -07:00
|
|
|
call assert_equal(579, ['123', '+', '456']->join()->eval())
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_equal([1, 2, 3, 4, 5], [1, 2, 3]->extend([4, 5]))
|
|
|
|
call assert_equal([1, 3], [1, 2, 3]->filter('v:val != 2'))
|
|
|
|
call assert_equal(2, l->get(1))
|
|
|
|
call assert_equal(1, l->index(2))
|
|
|
|
call assert_equal([0, 1, 2, 3], [1, 2, 3]->insert(0))
|
2021-08-06 09:09:47 -07:00
|
|
|
call assert_fails('eval l->items()', 'E715:')
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_equal('1 2 3', l->join())
|
2021-08-06 09:09:47 -07:00
|
|
|
call assert_fails('eval l->keys()', 'E715:')
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_equal(3, l->len())
|
|
|
|
call assert_equal([2, 3, 4], [1, 2, 3]->map('v:val + 1'))
|
|
|
|
call assert_equal(3, l->max())
|
|
|
|
call assert_equal(1, l->min())
|
|
|
|
call assert_equal(2, [1, 2, 3]->remove(1))
|
|
|
|
call assert_equal([1, 2, 3, 1, 2, 3], l->repeat(2))
|
|
|
|
call assert_equal([3, 2, 1], [1, 2, 3]->reverse())
|
|
|
|
call assert_equal([1, 2, 3, 4], [4, 2, 3, 1]->sort())
|
|
|
|
call assert_equal('[1, 2, 3]', l->string())
|
|
|
|
call assert_equal(v:t_list, l->type())
|
|
|
|
call assert_equal([1, 2, 3], [1, 1, 2, 3, 3]->uniq())
|
2021-08-06 09:09:47 -07:00
|
|
|
call assert_fails('eval l->values()', 'E715:')
|
2022-10-25 22:41:43 -07:00
|
|
|
call assert_fails('echo []->len', 'E107:')
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
endfunc
|
|
|
|
|
2021-08-06 10:58:27 -07:00
|
|
|
func Test_dict_method()
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
let d = #{one: 1, two: 2, three: 3}
|
|
|
|
|
|
|
|
call assert_equal(d, d->copy())
|
2021-08-07 14:39:23 -07:00
|
|
|
call assert_equal(d, d->deepcopy())
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_equal(1, d->count(2))
|
|
|
|
call assert_false(d->empty())
|
|
|
|
call assert_true({}->empty())
|
|
|
|
call assert_equal(#{one: 1, two: 2, three: 3, four: 4}, d->extend(#{four: 4}))
|
|
|
|
call assert_equal(#{one: 1, two: 2, three: 3}, d->filter('v:val != 4'))
|
|
|
|
call assert_equal(2, d->get('two'))
|
2020-11-17 20:11:00 -07:00
|
|
|
call assert_fails("let x = d->index(2)", 'E897:')
|
|
|
|
call assert_fails("let x = d->insert(0)", 'E899:')
|
2021-08-06 10:10:30 -07:00
|
|
|
call assert_true(d->has_key('two'))
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_equal([['one', 1], ['two', 2], ['three', 3]], d->items())
|
|
|
|
call assert_fails("let x = d->join()", 'E714:')
|
|
|
|
call assert_equal(['one', 'two', 'three'], d->keys())
|
|
|
|
call assert_equal(3, d->len())
|
|
|
|
call assert_equal(#{one: 2, two: 3, three: 4}, d->map('v:val + 1'))
|
|
|
|
call assert_equal(#{one: 1, two: 2, three: 3}, d->map('v:val - 1'))
|
|
|
|
call assert_equal(3, d->max())
|
|
|
|
call assert_equal(1, d->min())
|
|
|
|
call assert_equal(2, d->remove("two"))
|
|
|
|
let d.two = 2
|
|
|
|
call assert_fails('let x = d->repeat(2)', 'E731:')
|
2023-08-19 02:57:09 -07:00
|
|
|
call assert_fails('let x = d->reverse()', 'E1252:')
|
vim-patch:8.1.1803: all builtin functions are global
Problem: All builtin functions are global.
Solution: Add the method call operator ->. Implemented for a limited number
of functions.
https://github.com/vim/vim/commit/ac92e25a33c37ec5becbfffeccda136c73b761ac
- Note that to *exactly* port hunk @@ -7376,18 +7444,19 from
handle_subscript(), we need the :scriptversion patches (I have an open
PR for those, but this patch works fine without them anyway).
- Port call_internal_func() from v7.4.2058.
- Adjust some error messages in tests, as they rely on the Blob patches.
- Add a modeline to test_method.vim.
Ignore the global_functions and base_method tables and prefer the
current GPerf implementation. Instead, add an extra base_arg field to
VimLFuncDef that holds the number of the argument to use as the base
(1-indexed, so that 0 may be used to refer to functions that cannot be
used as methods).
This also means we support using any argument as a base from the get-go,
rather than just the first (Vim includes this ability in future patches,
however).
To mark a function as usable as a method, use the "base" key as
described in eval.lua.
2021-08-05 11:46:42 -07:00
|
|
|
call assert_fails('let x = d->sort()', 'E686:')
|
|
|
|
call assert_equal("{'one': 1, 'two': 2, 'three': 3}", d->string())
|
|
|
|
call assert_equal(v:t_dict, d->type())
|
|
|
|
call assert_fails('let x = d->uniq()', 'E686:')
|
|
|
|
call assert_equal([1, 2, 3], d->values())
|
|
|
|
endfunc
|
|
|
|
|
2021-08-06 10:58:27 -07:00
|
|
|
func Test_string_method()
|
2021-08-06 17:08:22 -07:00
|
|
|
eval '1 2 3'->split()->assert_equal(['1', '2', '3'])
|
|
|
|
eval '1 2 3'->split()->map({i, v -> str2nr(v)})->assert_equal([1, 2, 3])
|
|
|
|
eval 'ABC'->str2list()->assert_equal([65, 66, 67])
|
|
|
|
eval 'ABC'->strlen()->assert_equal(3)
|
|
|
|
eval "a\rb\ec"->strtrans()->assert_equal('a^Mb^[c')
|
|
|
|
eval "aあb"->strwidth()->assert_equal(4)
|
|
|
|
eval 'abc'->substitute('b', 'x', '')->assert_equal('axc')
|
|
|
|
|
|
|
|
eval 'abc'->printf('the %s arg')->assert_equal('the abc arg')
|
2021-08-06 10:10:30 -07:00
|
|
|
endfunc
|
|
|
|
|
2021-08-06 10:58:27 -07:00
|
|
|
func Test_method_append()
|
2021-08-06 09:09:47 -07:00
|
|
|
new
|
|
|
|
eval ['one', 'two', 'three']->append(1)
|
|
|
|
call assert_equal(['', 'one', 'two', 'three'], getline(1, '$'))
|
|
|
|
|
|
|
|
%del
|
|
|
|
let bnr = bufnr('')
|
|
|
|
wincmd w
|
|
|
|
eval ['one', 'two', 'three']->appendbufline(bnr, 1)
|
|
|
|
call assert_equal(['', 'one', 'two', 'three'], getbufline(bnr, 1, '$'))
|
|
|
|
|
|
|
|
exe 'bwipe! ' .. bnr
|
|
|
|
endfunc
|
|
|
|
|
2021-08-06 10:58:27 -07:00
|
|
|
func Test_method_funcref()
|
|
|
|
func Concat(one, two, three)
|
|
|
|
return a:one .. a:two .. a:three
|
|
|
|
endfunc
|
|
|
|
let FuncRef = function('Concat')
|
|
|
|
eval 'foo'->FuncRef('bar', 'tail')->assert_equal('foobartail')
|
|
|
|
|
2021-08-06 12:39:47 -07:00
|
|
|
" not enough arguments
|
|
|
|
call assert_fails("eval 'foo'->FuncRef('bar')", 'E119:')
|
|
|
|
" too many arguments
|
|
|
|
call assert_fails("eval 'foo'->FuncRef('bar', 'tail', 'four')", 'E118:')
|
|
|
|
|
2021-08-06 10:58:27 -07:00
|
|
|
let Partial = function('Concat', ['two'])
|
|
|
|
eval 'one'->Partial('three')->assert_equal('onetwothree')
|
|
|
|
|
2021-08-06 12:39:47 -07:00
|
|
|
" not enough arguments
|
|
|
|
call assert_fails("eval 'one'->Partial()", 'E119:')
|
|
|
|
" too many arguments
|
|
|
|
call assert_fails("eval 'one'->Partial('three', 'four')", 'E118:')
|
|
|
|
|
2021-08-06 10:58:27 -07:00
|
|
|
delfunc Concat
|
|
|
|
endfunc
|
|
|
|
|
2021-08-07 07:18:04 -07:00
|
|
|
func Test_method_float()
|
2021-10-05 10:58:06 -07:00
|
|
|
CheckFeature float
|
2021-08-07 07:18:04 -07:00
|
|
|
eval 1.234->string()->assert_equal('1.234')
|
|
|
|
eval -1.234->string()->assert_equal('-1.234')
|
|
|
|
endfunc
|
|
|
|
|
2021-08-06 13:04:17 -07:00
|
|
|
func Test_method_syntax()
|
|
|
|
eval [1, 2, 3] ->sort( )
|
|
|
|
eval [1, 2, 3]
|
|
|
|
\ ->sort(
|
|
|
|
\ )
|
2022-11-04 16:24:06 -07:00
|
|
|
call assert_fails('eval [1, 2, 3]-> sort()', 'E15:')
|
2021-08-06 13:04:17 -07:00
|
|
|
call assert_fails('eval [1, 2, 3]->sort ()', 'E274:')
|
2022-11-04 16:24:06 -07:00
|
|
|
call assert_fails('eval [1, 2, 3]-> sort ()', 'E15:')
|
2021-08-06 13:04:17 -07:00
|
|
|
endfunc
|
|
|
|
|
2021-08-06 13:08:20 -07:00
|
|
|
func Test_method_lambda()
|
|
|
|
eval "text"->{x -> x .. " extended"}()->assert_equal('text extended')
|
|
|
|
eval "text"->{x, y -> x .. " extended " .. y}('more')->assert_equal('text extended more')
|
|
|
|
|
|
|
|
call assert_fails('eval "text"->{x -> x .. " extended"} ()', 'E274:')
|
|
|
|
|
|
|
|
" todo: lambda accepts more arguments than it consumes
|
|
|
|
" call assert_fails('eval "text"->{x -> x .. " extended"}("more")', 'E99:')
|
2021-08-06 16:48:05 -07:00
|
|
|
|
|
|
|
" Nvim doesn't include test_refcount().
|
|
|
|
" let l = [1, 2, 3]
|
|
|
|
" eval l->{x -> x}()
|
|
|
|
" call assert_equal(1, test_refcount(l))
|
2021-08-06 13:08:20 -07:00
|
|
|
endfunc
|
|
|
|
|
2021-08-07 07:10:28 -07:00
|
|
|
func Test_method_not_supported()
|
|
|
|
call assert_fails('eval 123->changenr()', 'E276:')
|
2022-11-18 07:26:39 -07:00
|
|
|
call assert_fails('echo "abc"->invalidfunc()', 'E117:')
|
|
|
|
" Test for too many or too few arguments to a method
|
|
|
|
call assert_fails('let n="abc"->len(2)', 'E118:')
|
|
|
|
call assert_fails('let n=10->setwinvar()', 'E119:')
|
2021-08-07 07:10:28 -07:00
|
|
|
endfunc
|
|
|
|
|
2022-11-18 07:26:39 -07:00
|
|
|
" Test for passing optional arguments to methods
|
|
|
|
func Test_method_args()
|
|
|
|
let v:errors = []
|
|
|
|
let n = 10->assert_inrange(1, 5, "Test_assert_inrange")
|
|
|
|
if v:errors[0] !~ 'Test_assert_inrange'
|
|
|
|
call assert_report(v:errors[0])
|
|
|
|
else
|
|
|
|
" Test passed
|
|
|
|
let v:errors = []
|
|
|
|
endif
|
|
|
|
endfunc
|
|
|
|
|
|
|
|
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
|