Better support for parse errors in indenting

This commit is contained in:
ridiculousfish
2013-12-08 14:13:23 -08:00
parent dd0cc5ed9f
commit 67b1f14a6f
3 changed files with 43 additions and 13 deletions

View File

@@ -741,10 +741,17 @@ static void test_indents()
{L"", 2},
{NULL, -1}
};
const indent_component_t components11[] =
{
{L"switch foo", 0},
{L"cas", 1}, //parse error indentation handling
{NULL, -1}
};
const indent_component_t *tests[] = {components1, components2, components3, components4, components5, components6, components7, components8, components9, components10};
const indent_component_t *tests[] = {components1, components2, components3, components4, components5, components6, components7, components8, components9, components10, components11};
for (size_t which = 0; which < sizeof tests / sizeof *tests; which++)
{
const indent_component_t *components = tests[which];