Skip to content

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

Description

@nemax

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] == "+++ ")) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions