vala r956 - in trunk: . vala



Author: juergbi
Date: Sun Feb  3 16:18:23 2008
New Revision: 956
URL: http://svn.gnome.org/viewvc/vala?rev=956&view=rev

Log:
2008-02-03  Juerg Billeter  <j bitron ch>

	* vala/scanner.l: accept carriage returns in source files


Modified:
   trunk/ChangeLog
   trunk/vala/scanner.l

Modified: trunk/vala/scanner.l
==============================================================================
--- trunk/vala/scanner.l	(original)
+++ trunk/vala/scanner.l	Sun Feb  3 16:18:23 2008
@@ -201,7 +201,7 @@
 
 {ident}			{ uploc; yylval->str = g_strdup (yytext); return IDENTIFIER; }
 
-[ \t]+		{ uploc; /* eat up whitespace */ }
+[ \t\r]+	{ uploc; /* eat up whitespace */ }
 [\n]+		{ yylloc->first_line = yylloc->last_line = yylineno; yylloc->first_column = 1; yylloc->last_column = 0; }
 
 .	{ uploc; fprintf (stderr, "%d: syntax error: unexpected character Â%sÂ\n", yylloc->first_line, yytext); }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]