jmc
jmc copied to clipboard
[BUG] Hashtag-comments inside a class prevent containing a single quote cause compiler error
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
- add a comment to it containing at least
#'
- try to compile with
jmc compile
- 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