From 2af50e209c01519633aefbe9fa4d51dfc039a7d2 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 23 Jun 2016 15:08:15 -0400 Subject: [PATCH] nitlight_aas: inject a tailing `\n` to avoid parsing issues. Signed-off-by: Jean Privat --- src/examples/nitlight_as_a_service.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/examples/nitlight_as_a_service.nit b/src/examples/nitlight_as_a_service.nit index f0847f9..e117268 100644 --- a/src/examples/nitlight_as_a_service.nit +++ b/src/examples/nitlight_as_a_service.nit @@ -40,7 +40,7 @@ do var mb = new ModelBuilder(model, tc) # Parse the code - var source = new SourceFile.from_string("", content) + var source = new SourceFile.from_string("", content + "\n") var lexer = new Lexer(source) var parser = new Parser(lexer) var tree = parser.parse -- 1.7.9.5