From 6ff7459d154210a50f2e98ca6654396b12089981 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 23 Mar 2010 19:46:16 -0400 Subject: Standardise diagnostics a bit. --- dimension/lexer.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dimension/lexer.l') 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); } -- cgit v1.2.3