nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: doc: fixed some typos and other misc. corrections
[nit.git]
/
src
/
test_highlight.nit
diff --git
a/src/test_highlight.nit
b/src/test_highlight.nit
index
13384f6
..
399691b
100644
(file)
--- a/
src/test_highlight.nit
+++ b/
src/test_highlight.nit
@@
-15,11
+15,11
@@
# Program used to test the Nit highlighter
module test_highlight
# Program used to test the Nit highlighter
module test_highlight
-import highlight
+import htmlight
import test_phase
class TestHighlightVisitor
import test_phase
class TestHighlightVisitor
- super HighlightVisitor
+ super HtmlightVisitor
redef fun hrefto(e) do
return "#" + e.c_name
end
redef fun hrefto(e) do
return "#" + e.c_name
end
@@
-41,7
+41,7
@@
do
var n = mb.mpropdef2node(pd)
if not n isa APropdef then continue
var hl = new TestHighlightVisitor
var n = mb.mpropdef2node(pd)
if not n isa APropdef then continue
var hl = new TestHighlightVisitor
- hl.enter_visit(n)
+ hl.highlight_node(n)
print "<h1 id=\"{pd.c_name}\">{pd.full_name}</h1>"
printn "<pre><code>"
hl.html.write_to(stdout)
print "<h1 id=\"{pd.c_name}\">{pd.full_name}</h1>"
printn "<pre><code>"
hl.html.write_to(stdout)
@@
-69,7
+69,7
@@
class THLVisitor
seen.add cn
var hl = new TestHighlightVisitor
seen.add cn
var hl = new TestHighlightVisitor
- hl.enter_visit(n)
+ hl.highlight_node(n)
print "<h2>AST node: {cn} at {n.location}</h2>"
printn "<pre><code>"
hl.html.write_to(stdout)
print "<h2>AST node: {cn} at {n.location}</h2>"
printn "<pre><code>"
hl.html.write_to(stdout)