Merge branch 'ZackerySpytz-valid-floating-point-literals'

* ZackerySpytz-valid-floating-point-literals:
  Fix some rejections of valid floating-point literals
This commit is contained in:
William S Fulton 2019-03-02 17:48:49 +00:00
commit 195226873e
3 changed files with 13 additions and 0 deletions

View file

@ -1160,6 +1160,8 @@ static int look(Scanner *s) {
return SWIG_TOKEN_INT;
if (isdigit(c))
state = 84;
else if ((c == 'e') || (c == 'E'))
state = 82;
else if ((c == 'x') || (c == 'X'))
state = 85;
else if ((c == 'b') || (c == 'B'))
@ -1181,6 +1183,10 @@ static int look(Scanner *s) {
return SWIG_TOKEN_INT;
if (isdigit(c))
state = 84;
else if (c == '.')
state = 81;
else if ((c == 'e') || (c == 'E'))
state = 82;
else if ((c == 'l') || (c == 'L')) {
state = 87;
} else if ((c == 'u') || (c == 'U')) {