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

[Bug] Cannot parse YAML file from Sublime Packages #29

Closed
SleeplessOne1917 opened this issue May 31, 2024 · 4 comments
Closed

[Bug] Cannot parse YAML file from Sublime Packages #29

SleeplessOne1917 opened this issue May 31, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@SleeplessOne1917
Copy link

I get an error when trying to parse this file from Sublime Packages. When I try to do so, I get this error:

Err(ScanError { mark: Marker { index: 21883, line: 447, col: 18 }, info: "while scanning a block scalar, did not find expected comment or line break" })

It also breaks when trying to parse this file because it doesn't like comments appearing between the %YAML 1.2 and the 3 hyphens.

I discovered this issue when updating the syntect library to use yaml-rust2 instead of yaml-rust. Everything was parsed fine on version 0.4.5 of the old yaml-rust library.

This is unfortunately the only useful info on the bug I have at the moment.

@Ethiraric
Copy link
Owner

Regarding the Markdown file, it has to do with indentation. I tried trimming down the file and for some reason it breaks if the indent is 18 cols or higher. I most definitely messed something up when trying to optimize indentation scanning. I'll have a look tomorrow; I just had time for a quick check to see if it was an easy fix.

The issue with the Makefile file was fixed in 0eb7936, although I cannot remember whence that issue was brought to my knowledge. A release has not yet been made with that commit. I think I'll fix this and release afterwards.

@Ethiraric
Copy link
Owner

The issue has been fixed and a new release has been tagged! :)
Both files should now be parsed properly. Please do let me know if you still encounter any bug!

@Ethiraric Ethiraric added the bug Something isn't working label May 31, 2024
@Ethiraric
Copy link
Owner

@tranzystorekk this should be of interest to you. The bug you mentioned in #21 (comment) should be fixed.

@tranzystorekk
Copy link

Thank you!

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

3 participants