author | Sebastian Harl <sh@tokkee.org> | |
Sat, 12 Jul 2008 09:33:27 +0000 (11:33 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 15 Jul 2008 06:48:58 +0000 (08:48 +0200) | ||
commit | 56322d3b2ef2502ec52bf3633c6e808b2299b805 | |
tree | 2674e63de232c3f8143b6b27748cae957cb6a871 | tree | snapshot |
parent | 8508efd140d64efc676237f6ec9792c65d108aac | commit | diff |
liboconfig/scanner.l: Added support for wrapping lines.
Lines may now be wrapped by using "\" as the last character before the
newline. This allows long lines to be split into multiple lines. This also
applies to quoted strings, which are, however, treated special in that
whitespace at the beginning of the following lines will be ignored. This
allows for nicely indenting the wrapped lines.
The following example:
Foo a very very very long list of options \
that does not fit on one line
Bar "a very very very long string \
which does not fit on one line"
... is equivalent to:
Foo a very very very long list of options that does not fit on one line
Bar "a very very very long string which does not fit on one line"
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Lines may now be wrapped by using "\" as the last character before the
newline. This allows long lines to be split into multiple lines. This also
applies to quoted strings, which are, however, treated special in that
whitespace at the beginning of the following lines will be ignored. This
allows for nicely indenting the wrapped lines.
The following example:
Foo a very very very long list of options \
that does not fit on one line
Bar "a very very very long string \
which does not fit on one line"
... is equivalent to:
Foo a very very very long list of options that does not fit on one line
Bar "a very very very long string which does not fit on one line"
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/liboconfig/scanner.l | diff | blob | history |