aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/settings/settings_lexer.l
Commit message (Collapse)AuthorAgeFilesLines
* settings: Extend parser so we can parse settings from a stringTobias Brunner2015-07-281-0/+8
|
* settings: Add support for multi-line stringsTobias Brunner2015-07-281-7/+2
| | | | Unterminated strings are now an error.
* settings: Don't replace rarely used special charactersTobias Brunner2015-07-281-2/+0
|
* settings: Merge quoted strings that span multiple linesTobias Brunner2015-03-201-3/+2
|
* settings: Properly match } and # in include statementsTobias Brunner2014-05-151-6/+16
| | | | | | Found due to %option nodefault. A match for } was actually missing and # was not properly matched if it was part of an include statement on the last line of a file that did not end with a newline.
* settings: Eliminate performance warningTobias Brunner2014-05-151-2/+0
| | | | | This was useful during development, but we accept that matching \n together with %option yylineno impacts performance.
* parser-helper: Make parser_helper_file_t privateTobias Brunner2014-05-151-3/+3
|
* settings: Include generated header after othersTobias Brunner2014-05-151-2/+2
| | | | | Newer Bison versions declare the parser function in the header, which requires custom types.
* settings: Add flex/bison based parser for strongswan.confTobias Brunner2014-05-151-0/+193
This parser features several improvements over the existing one. For instance, quoted strings (with escape sequences), unlimited includes, relaxed newline handling (e.g. at the end of files or before/after { and }), and the difference between empty and unset values (key = vs. key = ""). It also complains a lot more about invalid syntax. The current one accepts pretty odd stuff (like settings or sections without name) without any errors or warnings.