diff --git a/lib/conf-lex.l b/lib/conf-lex.l index 9912c026..75832486 100644 --- a/lib/conf-lex.l +++ b/lib/conf-lex.l @@ -74,10 +74,6 @@ FLOAT [[:digit:]]*\.?[[:digit:]]+ NUM 0|([1-9][[:digit:]]*) - /* Only number between 1 and 255, octally represented. */ - -OCTESC (1[0-7]{0,2})|([2-7][0-7]?)|(0[1-7][0-7]?)|(00[1-7]) - %% @@ -311,26 +307,12 @@ ignore{BLANK}* { \\t buffer_add_char("\t"); \\v buffer_add_char("\v"); - /* We can't support \0, this would cause havoc! */ - -\\{OCTESC} { - int res; - sscanf(sensors_yytext+1,"%o",&res); - buffer_add_char(&res); - } - /* Other escapes: just copy the character behind the slash */ \\. { buffer_add_char(&sensors_yytext[1]); } - /* This prevents backing up; it is otherwise purely redundant */ - -\\00 { - buffer_add_char("00"); - } - /* Anything else (including a bare '\' which may be followed by EOF) */ \\ |