Skip to content

Commit

Permalink
relax the restrictions to reference comment shape
Browse files Browse the repository at this point in the history
  • Loading branch information
vladima committed Jul 17, 2014
1 parent 43ce151 commit cd9a434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/parser.ts
Original file line number Diff line number Diff line change
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 cd9a434

Please sign in to comment.