Negative FP constants... whodathunkit.
authorChris Lattner <sabre@nondot.org>
Tue, 23 Oct 2001 04:13:01 +0000 (04:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Oct 2001 04:13:01 +0000 (04:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@963 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/Lexer.l

index e9996b28295ab8aa0c7559780bd216f4b3b3ef36..b4910ec5172e6dd551f7f6a184c9782c61b25017 100644 (file)
@@ -111,7 +111,7 @@ NInteger  -[0-9]+
 
 /* FPConstant - A Floating point constant.
    TODO: Expand lexer to support 10e50 FP constant notation */
-FPConstant [0-9]+[.][0-9]*
+FPConstant -?[0-9]+[.][0-9]*
 
 %%