benanders / LuaIDE

An in-game IDE for ComputerCraft
MIT License
43 stars 9 forks source link

String Syntax Highlighting #35

Closed coaster3000 closed 10 years ago

coaster3000 commented 11 years ago

The syntax highlighting fails to detect strings properly that contain \"

Also alongside with that bug. When you use a \" to put " in the string. It will act as if you closed the string. Then if you try to put another " it will act as if you are opening another string with additional closing (Just need to hit delete key to remove the extra more of a nausance bug)

Then if doing a return statement in a function that returns a string.

And you concact table data with string keys. EX:

return "mining turtle ID:"..data["id"].." named:"..data["name"]

example for the escape chars just use this in ide

return "This id is \""..id.."\""

It will improperly highlight text..

Discovered this bug along with the escape characters..

benanders commented 11 years ago

Will hopefully be fixed when the new syntax highlighting system is implemented

benanders commented 10 years ago

Fixed in the new version :)