summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-01-10 23:46:07 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-01-10 23:46:07 -0800
commitfcffdae39e903260e1b23be56fd02bd11c695374 (patch)
treea8b8e4ff84cfec3fa6fc859dd3928f8f02532814
parent76e20618d3aa38d977ca37605634d103c5fb506b (diff)
downloadtxr-fcffdae39e903260e1b23be56fd02bd11c695374.tar.gz
txr-fcffdae39e903260e1b23be56fd02bd11c695374.tar.bz2
txr-fcffdae39e903260e1b23be56fd02bd11c695374.zip
parser: remove unreachable scanner rule.
* parser.l: Remove rule matching double quote in JSON state. This follows a rule which matches . so is unreachable. The rule is necessary, but an identical copy of it already appears earlier.
-rw-r--r--parser.l5
1 files changed, 0 insertions, 5 deletions
diff --git a/parser.l b/parser.l
index 24086ce2..34cea4fe 100644
--- a/parser.l
+++ b/parser.l
@@ -1250,11 +1250,6 @@ NJPUNC [^(){},:\[\]"~*^ \t\n]
chr(yytext[0]), nao);
}
-<JSON>\" {
- yy_push_state(JLIT, yyscanner);
- return yytext[0];
-}
-
<JMARKER>. {
internal_error("scanner processed input JMARKER state");
}