Don't include newlines in the whitespace before newline (WSNL) rule.
authorReid Spencer <rspencer@reidspencer.com>
Tue, 31 Jul 2007 03:55:43 +0000 (03:55 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 31 Jul 2007 03:55:43 +0000 (03:55 +0000)
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

index 19be3dc3b4961629a0986b95178ef21bb0596672..08a3a255d607012b723e46b77cea45effa5e7071 100644 (file)
@@ -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 */ }