Author: reid Date: Mon Jul 30 22:55:43 2007 New Revision: 40612 URL: http://llvm.org/viewvc/llvm-project?rev=40612&view=rev Log: Don't include newlines in the whitespace before newline (WSNL) rule. Fix the comment for WSNL to describe its actual function.
Modified: llvm/trunk/lib/AsmParser/Lexer.l Modified: llvm/trunk/lib/AsmParser/Lexer.l URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/Lexer.l?rev=40612&r1=40611&r2=40612&view=diff ============================================================================== --- llvm/trunk/lib/AsmParser/Lexer.l (original) +++ llvm/trunk/lib/AsmParser/Lexer.l Mon Jul 30 22:55:43 2007 @@ -177,8 +177,8 @@ */ HexIntConstant [us]0x[0-9A-Fa-f]+ -/* WSNL - shorthand for newline followed by whitespace */ -WSNL [ \r\t\n]*$ +/* WSNL - shorthand for whitespace followed by newline */ +WSNL [ \r\t]*$ %% {Comment} { /* Ignore comments for now */ } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits