nitlight_aas: inject a tailing `\n` to avoid parsing issues.
authorJean Privat <jean@pryen.org>
Thu, 23 Jun 2016 19:08:15 +0000 (15:08 -0400)
committerJean Privat <jean@pryen.org>
Thu, 23 Jun 2016 19:14:58 +0000 (15:14 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/examples/nitlight_as_a_service.nit

index f0847f9..e117268 100644 (file)
@@ -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