lkml.org 
[lkml]   [2002]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecttabs on otherwise empty lines
The <HELP> state is willing to consume config options as part of help
texts AFAICT:

(1) [ \t]+ {
(2) \n/[^ \t\n] {
(3) [ \t]*\n {
(4) [^ \t\n].* {
(5) <<EOF>> {

Now consider: "\tSome help text.\n\t\nconfig FOO\n\tdepends on BAR\n"

"\tSome help text." is consumed by (1).
"\n" is consumed by (3).
"\t\n" is consumed by (3) again.
"config FOO" is consumed by (4), which resets first_ts to last_ts,
which does not actually change the value of first_ts.
"\tdepends on BAR\n" is consumed by (1), and does not zconf_endhelp()
as the indentation level is the same as for "\tSome help text."

Better boundary detection logic is needed here.

Thanks,
Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.029 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site