jmc icon indicating copy to clipboard operation
jmc copied to clipboard

[BUG] Hashtag-comments inside a class prevent containing a single quote cause compiler error

Open Shywizz opened this issue 9 months ago • 0 comments

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 avatar May 21 '24 19:05 Shywizz