nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/doc: introduce option --no-render in HTML phase.
[nit.git]
/
src
/
nitlight.nit
diff --git
a/src/nitlight.nit
b/src/nitlight.nit
index
a81f845
..
9a7b050
100644
(file)
--- a/
src/nitlight.nit
+++ b/
src/nitlight.nit
@@
-19,9
+19,6
@@
import highlight
var toolcontext = new ToolContext
var toolcontext = new ToolContext
-# Disable `cached` because it causes issues when printing transformed AST. FIXME
-toolcontext.cached_phase.disabled = true
-
# Try to colorize, even if programs are non valid
toolcontext.keep_going = true
# Try to colorize, even if programs are non valid
toolcontext.keep_going = true
@@
-41,7
+38,7
@@
var modelbuilder = new ModelBuilder(model, toolcontext)
var args = toolcontext.option_context.rest
var args = toolcontext.option_context.rest
-var mmodules = modelbuilder.parse(args)
+var mmodules = modelbuilder.parse_full(args)
modelbuilder.run_phases
if opt_full.value then mmodules = model.mmodules
modelbuilder.run_phases
if opt_full.value then mmodules = model.mmodules
@@
-124,7
+121,7
@@
if dir != null then
var v = new HighlightVisitor
toolcontext.info("write {dir}/style.css", 1)
var v = new HighlightVisitor
toolcontext.info("write {dir}/style.css", 1)
- var f = new OFStream.open("{dir}/style.css")
+ var f = new FileWriter.open("{dir}/style.css")
f.write v.css_content
f.close
end
f.write v.css_content
f.close
end