diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-07-31 03:55:43 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-07-31 03:55:43 +0000 |
commit | 6794e616c7cf0e36bd7ad884d2cbe62031e0c6a7 (patch) | |
tree | 1ee0caeedcef7493e51971a8ba19597b7211a960 | |
parent | b8f85050d14d276ef9090818a5b83ded69a269a8 (diff) |
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
-rw-r--r-- | lib/AsmParser/Lexer.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index 19be3dc3b4..08a3a255d6 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 */ } |