Aircode does not like --[[ ]]-- comments. If they’re in your code, any code that occurs after they close will not be highlighted with the proper syntax highlighting. it’ll all appear as comments.
This is with the latest version of Codea, using AirCode inside Chrome.
i am not sure it is odd. ‘[[ … ]]’ is one big text bloc (with multiple line returns allowed).
So ‘–[[ … ]]’ is: comment this text bloc.
then ‘–[[ … ]]-- xxx’ is: comment this ‘–[[ … ]]’ then comment that ‘-- xxx’.
This could be the logic.
@Jmv38 You’re correct, it works like that --[[ comment here ]] end of comment, the two dashes at the end don’t make a difference to the block comment but that line after it.
@matkatmusis I have the same problem with air code. I’d avoid using it till its farther on in development. Theres lot of other problems that make it hard to seriously try to use it for any duration.
@matkatmusic I don’t use Air Code so I can’t try this. But the block comment below also works in Codea. Does it work in Air Code. The ending --]] doesn’t require the --.