nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pretty: skip commas in ANodes
[nit.git]
/
src
/
pretty.nit
diff --git
a/src/pretty.nit
b/src/pretty.nit
index
0dc4ffb
..
1bea99b
100644
(file)
--- a/
src/pretty.nit
+++ b/
src/pretty.nit
@@
-292,6
+292,8
@@
redef class ANodes[E]
for e in self do
var e_can_inline = v.can_inline(e)
+ if v.current_token isa TComma then v.skip
+
if e != first then
if not e_can_inline then
v.add ","