Not all comments are highlighted in code

  1. Open the sounds example project.
  2. Look at the third comment (“-- you can also call sound(“jump”,seed), where seed is an integer which describes a specific random sound (“jump” can be any of the strings above)”).

Expected: comment font is green

Actual: comment font is black like a piece of code

True, many things over a line long aren’t displayed well.

When this occurs in my code it reminds me I’m trying to do too much in one line again :slight_smile:

@SkullKrusher, the font isn’t colored green but the interpreter still treats the code as a comment.

It is the same story (ignored but not green) with Lua block comments:

–[[

This is ignored.

This is ignored.

This is ignored.

–]]

An issue has been raised on the wiki about this (it’s not a major issue but since Codea features ease of use and reading and writing code I’m sure we can expect that this will be fixed at some point).

https://bitbucket.org/TwoLivesLeft/codea/issue/55/text-editor-does-not-recognise-block