mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Fix wrong condition for unterminated multi-line comments
This commit is contained in:
parent
3c32fcc8df
commit
b6f4aa9da9
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user