erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.69k stars 55 forks source link

Unwanted behavior of multiline comment #311

Closed stasoid closed 1 year ago

stasoid commented 1 year ago

Describe the bug?

Currently everything on the line after ]# is ignored.

Example 1 (prints nothing):

#[]#print!0

Example 2 (unused warning, prints nothing):

print!#[]#0

Example 3 (syntax error on second ]#):

#[]# #[
]#

Erg version

0.6.0

Python version

3.11.1

OS

Ubuntu