WingedSeal / jmc

A compiler for JMC (JavaScript-like Minecraft Function), a mcfunction extension language for making Minecraft Datapack
https://jmc.wingedseal.com
MIT License
64 stars 7 forks source link

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

Open Shywizz opened 3 months ago

Shywizz commented 3 months ago

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

Additional context

jmc --version v1.2.17