rars icon indicating copy to clipboard operation
rars copied to clipboard

Comment Multiple Lines

Open juuwong opened this issue 4 years ago • 4 comments

Is there a way to comment multiple lines in rars 1.5? (i.e. in C we use block comments with /* */ notation)

juuwong avatar Feb 03 '21 02:02 juuwong

There is not a way to easily comment multiple lines. You must comment out each line with #.

It might be possible to make RARS accept C style comments without too much effort, but I personally don't plan on implementing it. If you would like to give it a shot, the most relevant file is https://github.com/TheThirdOne/rars/blob/345c17b8beac5ecfc17f6764dc78f950366b7c8c/src/rars/assembler/Tokenizer.java#L290

I have also considered completely rewriting the assembler; if I do, I will keep C-style multi-line comments in mind.

TheThirdOne avatar Feb 03 '21 03:02 TheThirdOne

Please add this

NilAtabey avatar Mar 30 '23 14:03 NilAtabey

I'm currently working on adding this feature. I expect to be finished today, stay tuned.

Edit: Didn't manage to finish it, but I think I'm close.

sdasda7777 avatar Oct 18 '23 05:10 sdasda7777

Feel free to check out the Pull Request at #203 and to give me your feedback 😊

sdasda7777 avatar Oct 19 '23 20:10 sdasda7777