Commit e162c18c authored by Davis King's avatar Davis King

Improved pretty printing

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403742
parent 28f2b63e
......@@ -1009,6 +1009,22 @@ string pretty_print_declaration (
{
temp += ".";
}
else if (decl[i].first == tok_type::SINGLE_QUOTED_TEXT)
{
temp += decl[i].second;
}
else if (decl[i].first == tok_type::DOUBLE_QUOTED_TEXT)
{
temp += decl[i].second;
}
else if (decl[i-1].first == tok_type::SINGLE_QUOTED_TEXT && decl[i].second == "'")
{
temp += decl[i].second;
}
else if (decl[i-1].first == tok_type::DOUBLE_QUOTED_TEXT && decl[i].second == "\"")
{
temp += decl[i].second;
}
else if (decl[i].first == tok_type::OTHER && decl[i].second == "[")
{
temp += "[";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment