Closed TheOtterlord closed 4 years ago
Great! i'll merge the pr
maybe something next could be adding support for comments.
I thought they would just be something like //
for 1 line comments and /* */
for multi line comments
Yeah, most languages use this syntax so it will help people migrate over. It also allows us to start documenting our tests & examples.
I think this could be best implemented in the next_char
function because this needs to be everywhere possible.
Although if we ever want to support code .gpl file formatting we might want to remember some comment context but we can always add that later.
For now, best to just implement the ability to use comments. And yes, I think that next_char
is a good place to put it.