aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-10-14 10:44:06 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-10-14 10:44:09 +0800
commit08e29ec4a148aece61a857c41d2f244b18122743 (patch)
treeca961bbb0366aeeba5fd692386a4a7b891b25f0c /test/functional/vimscript/executable_spec.lua
parent2b2a297bf16880c67b8652ac2cdf0a244d436ca0 (diff)
downloadrneovim-08e29ec4a148aece61a857c41d2f244b18122743.tar.gz
rneovim-08e29ec4a148aece61a857c41d2f244b18122743.tar.bz2
rneovim-08e29ec4a148aece61a857c41d2f244b18122743.zip
vim-patch:5485827: runtime(rst): Recognise numeric footnotes [1] correctly
The markup for footonotes [1] and citations [2] are almost identical. The difference is that footnotes allow numeric values but citations allow every valid reference name except numeric values. The regex for matching citations currently only checks for valid reference names but does not exclude number-only labels, thus also matches numeric footnotes. To match such footnotes, e.g. ``[1]`` define the syntax rule for footnotes after the syntax rule for citations so it gets higher precedence and matches first. [1] https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#footnotes [2] https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#citations related: vim/vim#18566 https://github.com/vim/vim/commit/5485827c5f872884dab83607e89562c8db4899c4 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