X-Git-Url: http://git.tuebingen.mpg.de/?p=lopsub.git;a=blobdiff_plain;f=config_file.l;h=f603b8ee4636a7e48af43246144e89e451e6e109;hp=37cb0aca6deb7bcee9cd74768db22b165561db27;hb=HEAD;hpb=b1d260c20c7df69bea7b9882928f8329e786db77 diff --git a/config_file.l b/config_file.l index 37cb0ac..1fae6db 100644 --- a/config_file.l +++ b/config_file.l @@ -1,7 +1,7 @@ /* * Copyright (C) 2016 Andre Noll * - * Licensed under the LGPL v3, see http://www.gnu.org/licenses/lgpl-3.0.html + * Licensed under the LGPL v3, see https://www.gnu.org/licenses/lgpl-3.0.html */ /* We don't want symbols to clash with those of other flex users. */ @@ -21,7 +21,7 @@ %s SC_SCANNING IDENTIFIER [a-zA-Z]+[a-zA-Z0-9_-]* -EQUALS [[:space:]]*=[[:space:]]* +EQUALS [[:blank:]]*=[[:blank:]]* OPTION [a-zA-Z]+[a-zA-Z0-9_-]* %{ @@ -47,10 +47,10 @@ OPTION [a-zA-Z]+[a-zA-Z0-9_-]* %% /* skip comments and whitespace */ -^[[:space:]]*#.*\n ; -[[:space:]]|\n+ ; +^[[:blank:]]*#.*\n ; +[[:blank:]]|\n+ ; -\[[[:space:]]*{IDENTIFIER}[[:space:]]*\][[:space:]]*\n { +\[[[:blank:]]*{IDENTIFIER}[[:blank:]]*\][[:blank:]]*\n { int i, j; const char *subcmd = yyget_extra(yyscanner)->subcmd; @@ -71,9 +71,9 @@ OPTION [a-zA-Z]+[a-zA-Z0-9_-]* BEGIN(SC_SCANNING); } -{OPTION}[[:space:]]*\n add_option(yyscanner); +{OPTION}[[:blank:]]*\n add_option(yyscanner); -{OPTION}({EQUALS}|[[:space:]]+) { +{OPTION}({EQUALS}|[[:blank:]]+) { int ret = add_option(yyscanner); if (ret < 0)