diff options
author | Michael Forney <mforney@mforney.org> | 2020-03-18 00:33:07 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2020-03-18 01:06:27 -0700 |
commit | 5cb3d6896f7c473a7fc66408114db4511fd9504c (patch) | |
tree | 2b61e68cefed23ed8ee9422f533b60893dcfeacc | |
parent | 3ef70a33536e77d21e9af8db7d4ab7e9367248f0 (diff) | |
download | cproc-5cb3d6896f7c473a7fc66408114db4511fd9504c.tar.xz |
token: Handle TEOF in tokendesc
-rw-r--r-- | token.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |