From dbe51c27ce9f5f4cb2e7c72812dede8f77aab85d Mon Sep 17 00:00:00 2001 From: helly Date: Sun, 29 Apr 2007 22:28:34 +0000 Subject: [PATCH] - Allow more labels --- re2c/code.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re2c/code.cc b/re2c/code.cc index 08a5428a..4f1488ab 100644 --- a/re2c/code.cc +++ b/re2c/code.cc @@ -29,8 +29,8 @@ std::string indent(uint ind) static std::string space(uint this_label) { - int nl = next_label > 9999 ? 4 : next_label > 999 ? 3 : next_label > 99 ? 2 : next_label > 9 ? 1 : 0; - int tl = this_label > 9999 ? 4 : this_label > 999 ? 3 : this_label > 99 ? 2 : this_label > 9 ? 1 : 0; + int nl = next_label > 999999 ? 6 : next_label > 99999 ? 5 : next_label > 9999 ? 4 : next_label > 999 ? 3 : next_label > 99 ? 2 : next_label > 9 ? 1 : 0; + int tl = this_label > 999999 ? 6 : this_label > 99999 ? 5 : this_label > 9999 ? 4 : this_label > 999 ? 3 : this_label > 99 ? 2 : this_label > 9 ? 1 : 0; return std::string(std::max(1, nl - tl + 1), ' '); } -- 2.40.0