nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitlight_aas: inject a tailing `\n` to avoid parsing issues.
[nit.git]
/
src
/
examples
/
nitlight_as_a_service.nit
diff --git
a/src/examples/nitlight_as_a_service.nit
b/src/examples/nitlight_as_a_service.nit
index
f0847f9
..
e117268
100644
(file)
--- 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 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
var lexer = new Lexer(source)
var parser = new Parser(lexer)
var tree = parser.parse