summaryrefslogtreecommitdiffstats
path: root/dimension/lexer.l
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-23 19:46:16 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-23 19:46:16 -0400
commit6ff7459d154210a50f2e98ca6654396b12089981 (patch)
treee553e598595d0fad96636ddadb13d89b4df3af55 /dimension/lexer.l
parent6ae6b2739dde7097effe42417e07f532c4bfda84 (diff)
downloaddimension-6ff7459d154210a50f2e98ca6654396b12089981.tar.xz
Standardise diagnostics a bit.
Diffstat (limited to 'dimension/lexer.l')
-rw-r--r--dimension/lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l
index 3a05ca9..e299106 100644
--- a/dimension/lexer.l
+++ b/dimension/lexer.l
@@ -294,7 +294,7 @@ unsigned long wchar;
#[\b\r\t\v ]*write RETURN_TOKEN(DMNSN_T_WRITE);
#[\b\r\t\v ]*[[:alnum:]_]* {
dmnsn_diagnostic(filename, yylineno, yycolumn,
- "Unrecognized language directive '%s'", yytext);
+ "unrecognized language directive '%s'", yytext);
RETURN_TOKEN(DMNSN_T_LEX_ERROR);
}
@@ -345,7 +345,7 @@ unsigned long wchar;
(?# Fall-through)
. {
dmnsn_diagnostic(filename, yylineno, yycolumn,
- "Unrecognized character '%c' (0x%X)",
+ "unrecognized character '%c' (0x%X)",
(int)*yytext, (unsigned int)(unsigned char)*yytext);
RETURN_TOKEN(DMNSN_T_LEX_ERROR);
}