summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-31 03:55:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-31 03:55:43 +0000
commit36ded45e5d7c2b497222b9cb8879d5cf94ba88cd (patch)
tree9211dc125f7eb3abaf1444d2a5df7fe6ee30e65c /llvm
parent22910a08a0c25024456ec5f3e17011f2fb5f1baf (diff)
downloadbcm5719-llvm-36ded45e5d7c2b497222b9cb8879d5cf94ba88cd.tar.gz
bcm5719-llvm-36ded45e5d7c2b497222b9cb8879d5cf94ba88cd.zip
Don't include newlines in the whitespace before newline (WSNL) rule.
Fix the comment for WSNL to describe its actual function. llvm-svn: 40612
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/AsmParser/Lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/Lexer.l b/llvm/lib/AsmParser/Lexer.l
index 19be3dc3b49..08a3a255d60 100644
--- a/llvm/lib/AsmParser/Lexer.l
+++ b/llvm/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 */ }
OpenPOWER on IntegriCloud