Skip to content

Commit 3cf33b4

Browse files
committed
fix: hanging parser on trailing comment
1 parent 4864889 commit 3cf33b4

16 files changed

+9019
-9354
lines changed

dialects/terraform/src/scanner.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ struct Scanner {
283283
skip(lexer);
284284
while (lexer->lookahead != '\n') {
285285
skip(lexer);
286+
if (lexer->eof(lexer)) {
287+
return false;
288+
}
286289
}
287290
return true;
288291
}

example/real_world_stuff/coreos/coreos%tectonic-installer%installer%frontend%ui-tests%output%aws.tfvars

Lines changed: 0 additions & 41 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%installer%frontend%ui-tests%output%metal.tfvars

Lines changed: 0 additions & 44 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%tests%smoke%azure%vars%basic.tfvars

Lines changed: 0 additions & 16 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%tests%smoke%azure%vars%dns.tfvars

Lines changed: 0 additions & 18 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%tests%smoke%azure%vars%example.tfvars

Lines changed: 0 additions & 12 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%tests%smoke%azure%vars%external-self-hosted-etcd.tfvars

Lines changed: 0 additions & 25 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%tests%smoke%azure%vars%external.tfvars

Lines changed: 0 additions & 23 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%tests%smoke%azure%vars%private-cluster.tfvars

Lines changed: 0 additions & 10 deletions
This file was deleted.

example/real_world_stuff/coreos/coreos%tectonic-installer%tests%smoke%azure%vars%self-hosted-etcd.tfvars

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)