mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Merge pull request #12156 from Microsoft/fix-jsdoc-missing-space-from-bad-indent
Fix jsdoc missing space from bad indent
This commit is contained in:
@@ -6304,6 +6304,7 @@ namespace ts {
|
||||
}
|
||||
if (token() === SyntaxKind.NewLineTrivia) {
|
||||
state = JSDocState.BeginningOfLine;
|
||||
indent = 0;
|
||||
nextJSDocToken();
|
||||
}
|
||||
while (token() !== SyntaxKind.EndOfFileToken) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// @Filename: Foo.js
|
||||
/////**
|
||||
//// * Represents a person
|
||||
//// * a b multiline test
|
||||
//// * @constructor
|
||||
//// * @param {string} name The name of the person
|
||||
//// * @param {number} age The age of the person
|
||||
@@ -13,4 +14,4 @@
|
||||
////}
|
||||
////var p = new Pers/**/on();
|
||||
goTo.marker();
|
||||
verify.quickInfoIs("function Person(name: string, age: number): void", "Represents a person");
|
||||
verify.quickInfoIs("function Person(name: string, age: number): void", "Represents a person\na b multiline test");
|
||||
|
||||
Reference in New Issue
Block a user