Open garie opened 9 years ago
See Issue 606.
Carriage returns (\r chars) are not treated as newlines by JSDuck. This will result in a file with carriage returns on the same line as a line comment (//) causing JSDuck error Invalid JavaScript syntax: Unexpected end of file.
\r
//
Invalid JavaScript syntax: Unexpected end of file
Example:
function asdf() {\n // some comment\r }\n
which JSDuck is translating to:
function asdf() { // some comment }
See Issue 606.
Carriage returns (
\r
chars) are not treated as newlines by JSDuck. This will result in a file with carriage returns on the same line as a line comment (//
) causing JSDuck errorInvalid JavaScript syntax: Unexpected end of file
.Example:
which JSDuck is translating to: