summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/net/nslexer.l4
-rw-r--r--lib/libc/net/nsparser.y4
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/net/nslexer.l b/lib/libc/net/nslexer.l
index 104cfbb..1166eed 100644
--- a/lib/libc/net/nslexer.l
+++ b/lib/libc/net/nslexer.l
@@ -94,9 +94,7 @@ STRING [a-zA-Z][a-zA-Z0-9_]*
return STRING;
}
-[:=\[\]] return yytext[0];
-
-. ; /* ignore all else */
+. return yytext[0];
%%
diff --git a/lib/libc/net/nsparser.y b/lib/libc/net/nsparser.y
index b39f011..79d5185 100644
--- a/lib/libc/net/nsparser.y
+++ b/lib/libc/net/nsparser.y
@@ -87,6 +87,10 @@ Entry
{
_nsdbtput(&curdbt);
}
+ | error NL
+ {
+ yyerrok;
+ }
;
Database
OpenPOWER on IntegriCloud