Skip to content

column_header when tilde is not preceded by space #94

Open
@lervag

Description

@lervag

The Tree-sitter version of the help filetype does not currently support the "column heading" item has a known limitation for handling the column header item. This item is documented in :help help-writing just before :help help-codeblock:

To define a column heading, use a tilde character at the end of the line.
This will highlight the column heading in a different color.  E.g.

Column heading 

(Btw.: I actually believe there may be a slight bug in the help file here, as I think the example should contain the tilde character.)

If the tilde does not have a preceding space, the current parser does not recognize it. So, the following syntax with old style syntax rules

Heading here~
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Should look something like this (depending on color scheme and so on):

image

Edit: I'm sorry, I just realized this was mentioned as a current limitation here. So, if I add a preceding space to the tilde, then it will be parsed correctly. Perhaps this issue then can remain open for handling the case without preceding space? I've reworded it to make it more clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions