This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
bjornir90's profile picture

[1.5] syntax coloration on multi-line comment

Started by bjornir90, 18 February 2013 - 06:15 AM
bjornir90 #1
Posted 18 February 2013 - 07:15 AM
This happens when you have a multi-lines comment in a advanced computer, the multi-lines doesn't get colored in grey as it should, only the first line. I think this id caused by the double brackets not being recognized.

To reproduce it simply edit a file on a advanced computer and type this :

--[[This will be colored
This will not
And this will not too]]--
Dlcruz129 #2
Posted 18 February 2013 - 12:35 PM
It's simply how they wrote it, however I agree it would be nice if they would change that. I believe it is the same with multi-line strings as well.
Lyqyd #3
Posted 18 February 2013 - 02:32 PM
Each line is matched individually.
Dlcruz129 #4
Posted 18 February 2013 - 02:39 PM
Each line is matched individually.

Exactly. It's not a huge deal but it would look more complete with multi-line strings/comments being colored.
bjornir90 #5
Posted 23 February 2013 - 10:48 AM
And the problem is that it looks like it is considered as actual code :(/>
Tiin57 #6
Posted 24 February 2013 - 12:49 AM
And the problem is that it looks like it is considered as actual code :(/>/>
Obviously; however, nothing happens past that.