Skip to content

Commit

Permalink
Merge pull request #137 from Microsoft/referencecomments
Browse files Browse the repository at this point in the history
relax the restrictions to reference comment shape, fixes #50
  • Loading branch information
vladima committed Jul 17, 2014
2 parents 5806789 + cd9a434 commit b9372a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/parser.ts
Expand Up @@ -2867,7 +2867,7 @@ module ts {
file.hasNoDefaultLib = true;
}
else {
var fullReferenceRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2\s*\/>/;
var fullReferenceRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;
var matchResult = fullReferenceRegEx.exec(comment);
if (!matchResult) {
var start = range.pos;
Expand Down

0 comments on commit b9372a1

Please sign in to comment.