-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect empty pipe_table_cell #112
Comments
I agree, the output should contain a node even for empty cells. The problem is that nodes in treesitter cannot be empty (unless they're parsed by the "external scanner"). Cell nodes at the moment do not contain the I think this is quite easily fixable by moving the cell node to the external scanner. I'll try to do that (but don't expect a solution to soon, I'm a bit busy at the moment) |
Much appreciated! Thanks for your work |
As mentioned in the PR there is still an issue with table cells that are completely empty, but cells that contain whitespace get marked now. |
I don't think it's part of the spec in any way for
EXTENSION_PIPE_TABLE
, at least as shown here, but I usually find myself using markdown tables with empty cells. I use treesitter to navigate them (jumping to the nextpipe_table_cell
, but these empty cells are not detected in any way. For example:The tree for this table is:
As you can see, if jumping between
pipe_table_cell
, we would jump directly from the cells1
to3
. Is this something possible or that doesn't break any of the standards?The text was updated successfully, but these errors were encountered: