aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-03-18 00:33:07 -0700
committerMichael Forney <mforney@mforney.org>2020-03-18 01:06:27 -0700
commit5cb3d6896f7c473a7fc66408114db4511fd9504c (patch)
tree2b61e68cefed23ed8ee9422f533b60893dcfeacc
parent3ef70a33536e77d21e9af8db7d4ab7e9367248f0 (diff)
downloadcproc-5cb3d6896f7c473a7fc66408114db4511fd9504c.tar.xz
token: Handle TEOF in tokendesc
-rw-r--r--token.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/token.c b/token.c
index b3673a8..0fe306f 100644
--- a/token.c
+++ b/token.c
@@ -146,6 +146,7 @@ tokendesc(char *buf, size_t len, enum tokenkind kind, const char *lit)
bool quote;
switch (kind) {
+ case TEOF: class = "EOF"; break;
case TIDENT: class = "identifier"; quote = true; break;
case TNUMBER: class = "number"; quote = true; break;
case TCHARCONST: class = "character"; quote = false; break;