Skip to content

Conversation

justinmk
Copy link
Member

@justinmk justinmk commented Oct 5, 2022

Problem:
taglinks like `|-x|` and `|==|` are matched against the $.word pattern
`/\|---[-+]+\|/` and `/\|===[=+]+\|/`, respectively (treesitter bug?).
This prevents valid taglinks from being recognized.

Solution:
Give up on "|====|" and "|----|" plaintext nodes. These will now be
parsed as taglinks. Consumers must ignore these cases manually.
Example from ":help definitions":

    2. bbb		2. bbb		2. bbb		10. ddd
    3. ccc ccc ccc	3. ccc ccc ccc	3. ccc ccc c	11. ~
@justinmk justinmk merged commit d595021 into neovim:master Oct 5, 2022
@justinmk justinmk deleted the fixes branch October 5, 2022 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant