File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33module dparse.parser ;
44
5- import dparse.lexer;
65import dparse.ast;
6+ import dparse.lexer;
77import dparse.rollback_allocator;
88import dparse.stack_buffer;
9- import std.experimental.allocator.mallocator ;
10- import std.experimental.allocator ;
11- import std.conv ;
129import std.algorithm ;
1310import std.array ;
11+ import std.conv ;
12+ import std.experimental.allocator ;
13+ import std.experimental.allocator.mallocator ;
1414import std.string : format;
1515
1616// Uncomment this if you want ALL THE OUTPUT
@@ -4635,8 +4635,13 @@ class Parser
46354635 {
46364636 if (auto c = parseInterpolatedStringPart())
46374637 parts.put(c);
4638- else
4638+ else if (moreTokens)
46394639 advance();
4640+ else
4641+ {
4642+ error(" Expected more interpolated string parts but got EOF " , false );
4643+ return null ;
4644+ }
46404645 }
46414646 ownArray(node.parts, parts);
46424647 expect(tok! " istringLiteralEnd" );
You can’t perform that action at this time.
0 commit comments