From: Reid Spencer Date: Tue, 31 Jul 2007 03:55:43 +0000 (+0000) Subject: Don't include newlines in the whitespace before newline (WSNL) rule. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6794e616c7cf0e36bd7ad884d2cbe62031e0c6a7;p=oota-llvm.git Don't include newlines in the whitespace before newline (WSNL) rule. Fix the comment for WSNL to describe its actual function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40612 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index 19be3dc3b49..08a3a255d60 100644 --- a/lib/AsmParser/Lexer.l +++ b/lib/AsmParser/Lexer.l @@ -177,8 +177,8 @@ HexFPConstant 0x[0-9A-Fa-f]+ */ 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 */ }