syntax: fix a pp bug on foreign mods.

This commit is contained in:
Graydon Hoare 2012-12-04 17:05:42 -08:00
parent 58a4a3700d
commit 65db4315ab

View file

@ -496,6 +496,7 @@ fn print_item(s: ps, &&item: @ast::item) {
ast::item_foreign_mod(nmod) => {
head(s, visibility_qualified(item.vis, ~"extern"));
print_string(s, *s.intr.get(nmod.abi));
nbsp(s);
match nmod.sort {
ast::named => {
word_nbsp(s, ~"mod");