Skip to content

Commit 669a209

Browse files
committed
Fix possible range violation error.
1 parent 480ab14 commit 669a209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/ddox/parsers/jsonparser.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ private struct Parser
448448
tokens.popFront();
449449
del(CachedString("@"~tokens.front));
450450
tokens.popFront();
451-
} else if( keywords.countUntil(tokens[0]) >= 0 && tokens[1] != "(" ){
451+
} else if( keywords.countUntil(tokens[0]) >= 0 && tokens.length > 1 && tokens[1] != "(" ){
452452
del(CachedString(tokens.front));
453453
tokens.popFront();
454454
} else break;

0 commit comments

Comments
 (0)