From 6794e616c7cf0e36bd7ad884d2cbe62031e0c6a7 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 31 Jul 2007 03:55:43 +0000 Subject: [PATCH] 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 --- lib/AsmParser/Lexer.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ }