summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-10 00:14:58 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-10 00:14:58 -0500
commit46404ea1b6ad634a0a6b815dc0b2d43234433149 (patch)
tree195c01395292968aba14322444e2c98c5b4fc4f3 /dimension
parent34a22822fb34224d8c49685e602d218a0efa6cfa (diff)
downloaddimension-46404ea1b6ad634a0a6b815dc0b2d43234433149.tar.xz
Fix directives test.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/lexer.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l
index d635bd1..d206605 100644
--- a/dimension/lexer.l
+++ b/dimension/lexer.l
@@ -355,6 +355,8 @@ dmnsn_print_token(FILE *file, dmnsn_token token)
tname = "\\(";
} else if (token.type == DMNSN_T_RPAREN) {
tname = "\\)";
+ } else if (token.type == DMNSN_T_LEX_ERROR) {
+ tname = "(error)";
} else {
tname = dmnsn_token_string(token.type);
}