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

parse failed with comment lines contain line start with 3 '-' #30

Open
nemax opened this issue Mar 14, 2023 · 0 comments
Open

parse failed with comment lines contain line start with 3 '-' #30

nemax opened this issue Mar 14, 2023 · 0 comments

Comments

@nemax
Copy link

nemax commented Mar 14, 2023

image
https://user-images.githubusercontent.com/1342652/224879030-fc06971f-4dcb-442c-a8a1-1348bf4dac9e.png

since the source contains a line "--------------------------------------" in comment as a segment line, the isSourceLine function just ignore it, i wonder if the condition should be changed as below

if l := len(line); l == 0 || (l >= 3 && (line[:4] == "--- " || line[:4] == "+++ ")) {

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

No branches or pull requests

1 participant