liboconfig/scanner.l: Added support for wrapping lines.
authorSebastian Harl <sh@tokkee.org>
Sat, 12 Jul 2008 09:33:27 +0000 (11:33 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 15 Jul 2008 06:48:58 +0000 (08:48 +0200)
commit56322d3b2ef2502ec52bf3633c6e808b2299b805
tree2674e63de232c3f8143b6b27748cae957cb6a871
parent8508efd140d64efc676237f6ec9792c65d108aac
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>
src/liboconfig/scanner.l