As Divran hinted in the longest thread evar, I am adding block comments/multiline strings to E2. Syntax is:
Code:
#[ Ooo, block comments
The E2 can't see this text, bwahaha! ]#
if (Stuff #[ & BrokenStuff ]#)
{
moarStuff()
}
print("Hey look
strings can go to the next line.
BTW, newlines are preserved, so the text is printed in multiple lines.
You can stop this by placing a backslash \
at the end of the line.") I also added an escape to allow adding characters by their decimal equivalent, effectively running string.char on them.
Code:
Test = "\d120" # Test = "x"
I'll be releasing them when I completely bug test them, and when Divran gives me his highlighting code.
A few things to note:
1. Preprocessor statements (#ifdef, ect.), will not be executed if inside a block comment.
2. For the \d### and \h## syntax, numbers less than 32 or greater than 255 will be ignored, and the statement will be replaced with ""
3. You can't do:
Use toChar.
ToDo:Block comments break column numbers when errors occur. Done!Test \d### with wierd numbers. Now has same restrictions as the toChar functionBug Divran to give me the code to the highlighter. Done!- Add \h## for adding characters based on hexadecimal representation.
- Clean up code in the preprocessor (I effectively rewrote the whole process of removing comments.)
- Commit.
Bookmarks