From f658426ba59bd956c6ec61663e87c3e594361640 Mon Sep 17 00:00:00 2001 From: Shevek Date: Mon, 19 Aug 2019 12:23:10 -0700 Subject: LexerSource: Fix handling of numeric values with explicit positive exponents. --- src/main/java/org/anarres/cpp/LexerSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/anarres') diff --git a/src/main/java/org/anarres/cpp/LexerSource.java b/src/main/java/org/anarres/cpp/LexerSource.java index 33268f8..c613f96 100644 --- a/src/main/java/org/anarres/cpp/LexerSource.java +++ b/src/main/java/org/anarres/cpp/LexerSource.java @@ -569,7 +569,7 @@ public class LexerSource extends Source { LexerException { StringBuilder part = new StringBuilder(); int d = read(); - if (sign && d == '-') { + if (sign && (d == '+' || d == '-')) { text.append((char) d); part.append((char) d); d = read(); -- cgit v1.2.3