Page 1 of 1

// Comments can produce error

Posted: July 19th, 2009, 2:39 pm
by nab
The following behavior has been experienced on a Mac (10.5) with AE CS4.

It seems that not adding a newline after a comment (e.g. "// my comment") produces an error ("No closing brace found").
In other words a // comment must not terminate the expression field.

For example, this simple opacity expression will not work:

Code: Select all

random(100); // this is a comment
but this one will:

Code: Select all

random(100); // this is comment

(note the additional newline)

Using "/* this is a comment */" commenting style works in both cases.