p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
https://sar.portal2.sr/
MIT License
94 stars 32 forks source link

feat: add TAS parser multiline comments with /*, */ #51

Closed david072 closed 2 years ago

david072 commented 3 years ago

Also works with opening and closing the comment in the same line (e.g.: 5>||say test /*comment*/|).

I also fixed the bug that if you use start cm, in the raw TAS file would not be the map name (fix: #53)

mlugg commented 2 years ago

why exactly is this a thing? feels like slight overcomplication for no good reason. a framebulk should never be so big that you need comments within it

david072 commented 2 years ago

I mainly wanted to add the multiline comments for being able to more easily comment out a bigger part of a script, for example when wanting to remember an earlier version.

Being able to close them in the same line they were opened is more a secondary feature that could be useful when for example commenting out a single field without deleting it's contents.