Skip to content
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

Bullet lists with colon in the line #16

Open
Carreau opened this issue Nov 1, 2021 · 2 comments
Open

Bullet lists with colon in the line #16

Carreau opened this issue Nov 1, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Carreau
Copy link

Carreau commented Nov 1, 2021

This: triggers and error

Bullet list with colon, it can be a be or c with 

  * a for example has colon here : <-
  * b : but earlier

While it appears to be properly parsed by sphinx/docutils "active_mask" paramter.

I see why it's ambiguous, and can be seen as as definition list, so unsure if it's fixable.

@stsewd
Copy link
Owner

stsewd commented Nov 2, 2021

Thanks for reporting. I was able to reproduce with a minimal example

a : b
document [0, 0] - [1, 0]
  ERROR [0, 0] - [0, 5]
    classifier [0, 4] - [0, 5]

it's trying to parse it as a definition list, but as the body is missing it errors, but that's a valid paragraph. I'll see if I can fix this in the following weeks.

@stsewd stsewd added the bug Something isn't working label Nov 2, 2021
@Carreau
Copy link
Author

Carreau commented Nov 2, 2021

Thanks for the quick response.

It is not pressing on my end, I just happened to come across this error and thought I might as well open an issue.

Much appreciation for your work on tree-sitter-rst.

@Carreau Carreau changed the title Bullet lists with colon in the line/ Bullet lists with colon in the line Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants