85b8d27ea3
* Remove error on invalid jsdoc tokens In JSDoc: 1. In the scanner, don't issue an error, even for invalid identifiers. 2. In the binder, don't issue an error for reserved (but otherwise valid) identifiers. /** * Example of 1: "\" * Example of 2: @private */ * Update baselines * Add invalid unicode escape test for JSDoc * Add quotes around invalid unicode escape * Add another unicode escape JSDoc test
16 lines
390 B
TypeScript
16 lines
390 B
TypeScript
// @Filename: jsdocInvalidTokens.js
|
|
// @strict: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
|
|
/**
|
|
*
|
|
* unicode-escape = "\u{abcdefghi}" -- should not have error for invalid unicode escape
|
|
* unicode-escape2 = "qq\u{abcdefghi}" -- no error here either
|
|
* quoted-pair = "\" -- should not have error for invalid quote sequence
|
|
* or for the tag below:
|
|
* @private
|
|
*/
|
|
var hi = 1
|