mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix wrong condition for unterminated multi-line comments
This commit is contained in:
@@ -2025,9 +2025,9 @@ module ts {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
// is unterminated multiline comment
|
||||
return text.charCodeAt(comment.end - 1) !== CharacterCodes.slash &&
|
||||
text.charCodeAt(comment.end - 2) !== CharacterCodes.asterisk;
|
||||
// is unterminated multi-line comment
|
||||
return !(text.charCodeAt(comment.end - 1) === CharacterCodes.slash &&
|
||||
text.charCodeAt(comment.end - 2) === CharacterCodes.asterisk);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
//// {| "name": "5" |}/* */
|
||||
|
||||
/////* {| "name": "6" |}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListIsEmpty();
|
||||
|
||||
@@ -22,5 +24,8 @@ verify.completionListIsEmpty();
|
||||
goTo.marker("4");
|
||||
verify.not.completionListIsEmpty();
|
||||
|
||||
//goTo.marker("5");
|
||||
//verify.not.completionListIsEmpty();
|
||||
goTo.marker("5");
|
||||
verify.not.completionListIsEmpty();
|
||||
|
||||
goTo.marker("6");
|
||||
verify.completionListIsEmpty();
|
||||
|
||||
Reference in New Issue
Block a user