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] Hashtag-comments inside a class prevent containing a single quote cause compiler error #100

Open
Shywizz opened this issue May 21, 2024 · 0 comments
Assignees
Labels
Type: Bug Something isn't working

Comments

@Shywizz
Copy link

Shywizz commented May 21, 2024

Describe the bug

The compiler will complain that "bracket for a class was never closed" if using a comment containing a single quote

To Reproduce

create a dummy class

  1. add a comment to it containing at least #'
  2. try to compile with jmc compile
  3. Error happens

Expected behavior

Code should compile correctly and output the comment line as-is

Screenshots

Relevant jmc/tryout demo :
jmc-commenting-bug

Desktop

  • OS: Linux arch 6.8.5-arch1-1x86_64 GNU/Linux

Additional context

jmc --version
v1.2.17

@Shywizz Shywizz added the Type: Bug Something isn't working label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants