diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-10-14 10:41:51 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2025-10-14 10:41:58 +0800 |
| commit | 7455c5ce88c4c3ee7ddd3ea8975fafec310d5a9b (patch) | |
| tree | 7e2314bc28a395a0050ce50df1e64e5b754aed4f /test/functional/vimscript/executable_spec.lua | |
| parent | fc74b9fb34900dfbeccf5e702d98af66d3e1debf (diff) | |
| download | rneovim-7455c5ce88c4c3ee7ddd3ea8975fafec310d5a9b.tar.gz rneovim-7455c5ce88c4c3ee7ddd3ea8975fafec310d5a9b.tar.bz2 rneovim-7455c5ce88c4c3ee7ddd3ea8975fafec310d5a9b.zip | |
vim-patch:0940465: runtime(rst): Fix doctest block syntax
A doctest block usually spans multiple lines, e.g.
>>> print('this is a Doctest block')
this is a Doctest block
Remove ``oneline`` argument to syntax region as this requirement is not
met. Consequently, also remove ``display`` as the prerequisite (the
syntax region is on a single line) is no longer met.
----
Recognise '>>>' inside doctest blocks
Recognise subsequent '>>>' prompts in doctest blocks, e.g.
>>> print('this is a Doctest block')
this is a Doctest block
>>> print('this is a second Doctest block')
this is a second Doctest block
A doctest block usually spans multiple lines, e.g.
>>> print('this is a Doctest block')
this is a Doctest block
related: vim/vim#18566
https://github.com/vim/vim/commit/0940465866486db47baa1fe85ebefb6e6fe54612
Co-authored-by: Kirk Roemer <91125534+kirk-roemer@users.noreply.github.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions