huderlem / poryscript

High-level scripting language for gen 3 pokemon decompilation projects
https://www.huderlem.com/poryscript-playground/
MIT License
191 stars 21 forks source link

Add multiline comment support #60

Closed Ninjdai1 closed 9 months ago

Ninjdai1 commented 9 months ago

Fixes #54 Maybe not the best way to implement it, but it works as of my testing

Syntax:

/*
Multi
line
comment
*/
huderlem commented 9 months ago

Discussed offline on Discord, but we're closing this out due to:

  1. Most code editors have easy/quick ways to comment out a block of lines.
  2. Adding multiline comment support to Poryscript has some unexpected complexity to both the lexer as well as necessitating a change to the Poryscript language extension.