Commit 91ece420 authored by Guido van Rossum's avatar Guido van Rossum

Guess tab size on the Mac from tab resource.

parent 24e77d42
......@@ -84,6 +84,13 @@ parsefile(fp, filename, g, start, ps1, ps2, n_ret)
fprintf(stderr, "no mem for tok_setupf\n");
return E_NOMEM;
}
#ifdef macintosh
{
int tabsize = guesstabsize(filename);
if (tabsize > 0)
tok->tabsize = tabsize;
}
#endif
ret = parsetok(tok, g, start, n_ret);
if (ret == E_TOKEN || ret == E_SYNTAX) {
char *p;
......
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