cleanup and added requirement for floats to start with 0.2

This commit is contained in:
gnembon committed 2019-10-05 02:23:53 -03:00
1 parent 974aa51e2a
commit dab9c5debe
4 files changed
+6 -17

No files matched your search

+2 -1
View File
@@ -94,7 +94,8 @@ public class Tokenizer implements Iterator<Tokenizer.Token>
boolean isHex = false;
if (Character.isDigit(ch) || (ch == decimalSeparator && Character.isDigit(peekNextChar())))
if (Character.isDigit(ch)) // || (ch == decimalSeparator && Character.isDigit(peekNextChar())))
// decided to no support this notation to favour element access via . operator
{
if (ch == '0' && (peekNextChar() == 'x' || peekNextChar() == 'X'))
isHex = true;