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

feat: treat nested block comment #11

Merged
merged 9 commits into from
Apr 3, 2024
Merged

feat: treat nested block comment #11

merged 9 commits into from
Apr 3, 2024

Conversation

Seasawher
Copy link
Owner

@Seasawher Seasawher commented Apr 2, 2024

resolve #10

Nested block comments can now be handled.

#eval runTest
  (title := "nested block comment")
  [
    "/-",.
    "this is a test",.
    "/- nested comment -/",.
    "of nested block comment -/"
  ]
  [
    "this is a test",
    "/- nested comment -/",
    "of nested block comment".
  ]

@Seasawher
Copy link
Owner Author

In addition, the following cases can now be handled

#eval runTest
  (title := "raw code block")
  [
    "/-",
    "```lean",
    "/- this is test -/",
    "```",
    "fuga",
    "-/",
    "/- hoge -/",
  ]
  [
    "```lean",
    "/- this is test -/",
    "```",
    "fuga",
    "",
    "hoge"
  ]

@Seasawher Seasawher marked this pull request as ready for review April 3, 2024 15:30
@Seasawher Seasawher merged commit 769faa4 into main Apr 3, 2024
1 check passed
@Seasawher Seasawher deleted the nested-comment branch April 3, 2024 15:36
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

Successfully merging this pull request may close these issues.

issue for block comment
1 participant