Skip to content

Commit

Permalink
Fixes #125
Browse files Browse the repository at this point in the history
  • Loading branch information
iccir committed Nov 5, 2017
1 parent 32482d7 commit 66fdbeb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/esprima.js
Original file line number Diff line number Diff line change
Expand Up @@ -6364,7 +6364,7 @@

appendNameAngle();

while (match(',')) {
while (angles > 0 && match(',')) {
lex();
parts.push(',');
appendNameAngle();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bin": {
"ojc": "./bin/ojc"
},
"version": "2.1",
"version": "2.1.0",
"engines": { "node": ">=6.0" },
"maintainers": [{
"name": "Ricci Adams",
Expand Down
11 changes: 11 additions & 0 deletions test/issues/TestIssue125.oj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This just needs to parse

@type TestIssue125Type = {
a: String,
b: String,
c: Object<Object<String>>,
d: String,
e: Object<String>
};

true;

0 comments on commit 66fdbeb

Please sign in to comment.