diff --git a/include/xo/tokenizer2/tokentype.hpp b/include/xo/tokenizer2/tokentype.hpp index eeeb7dd0..91cb3622 100644 --- a/include/xo/tokenizer2/tokentype.hpp +++ b/include/xo/tokenizer2/tokentype.hpp @@ -164,8 +164,8 @@ namespace xo { /** keyword @c 'end' **/ tk_end, - /** counts number of entries **/ - n_tokentype + /** comes last, counts number of entries **/ + N }; /*tokentype*/ /** String representation for enum value. diff --git a/src/tokenizer2/tokentype.cpp b/src/tokenizer2/tokentype.cpp index 33d683de..40c2dbfb 100644 --- a/src/tokenizer2/tokentype.cpp +++ b/src/tokenizer2/tokentype.cpp @@ -60,7 +60,7 @@ namespace xo { CASE(tk_end); case tokentype::tk_invalid: - case tokentype::n_tokentype: + case tokentype::N: return "?tokentype"; }