summaryrefslogtreecommitdiffstats
path: root/parser.l
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
commit15a45c00d9d8acaaa6e4eb43f553243230760c54 (patch)
treea8b8e4ff84cfec3fa6fc859dd3928f8f02532814 /parser.l
parentc06457a7de9473bf71c06baec314e14868be14e9 (diff)
downloadtxr-15a45c00d9d8acaaa6e4eb43f553243230760c54.tar.gz
txr-15a45c00d9d8acaaa6e4eb43f553243230760c54.tar.bz2
txr-15a45c00d9d8acaaa6e4eb43f553243230760c54.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.
Diffstat (limited to 'parser.l')
-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");
}