Skip to content

Commit

Permalink
Merge pull request #595 from 9rnsr/fix12813
Browse files Browse the repository at this point in the history
Issue 12813 - Parser is confused between float and UFC syntax
  • Loading branch information
WalterBright committed Jun 19, 2014
2 parents 2f59406 + db6c8f4 commit d1ca685
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lex.dd
Expand Up @@ -689,6 +689,10 @@ $(GNAME HexDigitsNoSingleUS):
$(GLINK HexDigit) $(GLINK HexDigitsUS)
$(GLINK HexDigitsUS) $(GLINK HexDigit)

$(GNAME HexDigitsNoStartingUS):
$(GLINK HexDigit)
$(GLINK HexDigit) $(GLINK HexDigitsUS)

$(GNAME HexDigit):
$(GLINK DecimalDigit)
$(GLINK HexLetter)
Expand Down Expand Up @@ -791,7 +795,7 @@ $(GNAME Float):
$(GNAME DecimalFloat):
$(GLINK LeadingDecimal) $(B .)
$(GLINK LeadingDecimal) $(B .) $(GLINK DecimalDigits)
$(GLINK DecimalDigits) $(B .) $(GLINK DecimalDigitsNoSingleUS) $(GLINK DecimalExponent)
$(GLINK DecimalDigits) $(B .) $(GLINK DecimalDigitsNoStartingUS) $(GLINK DecimalExponent)
$(B .) $(GLINK DecimalInteger)
$(B .) $(GLINK DecimalInteger) $(GLINK DecimalExponent)
$(GLINK LeadingDecimal) $(GLINK DecimalExponent)
Expand All @@ -808,8 +812,8 @@ $(GNAME DecimalExponentStart)
$(B E-)

$(GNAME HexFloat):
$(GLINK HexPrefix) $(GLINK HexDigitsNoSingleUS) $(B .) $(GLINK HexDigitsNoSingleUS) $(GLINK HexExponent)
$(GLINK HexPrefix) $(B .) $(GLINK HexDigitsNoSingleUS) $(GLINK HexExponent)
$(GLINK HexPrefix) $(GLINK HexDigitsNoSingleUS) $(B .) $(GLINK HexDigitsNoStartingUS) $(GLINK HexExponent)
$(GLINK HexPrefix) $(B .) $(GLINK HexDigitsNoStartingUS) $(GLINK HexExponent)
$(GLINK HexPrefix) $(GLINK HexDigitsNoSingleUS) $(GLINK HexExponent)

$(GNAME HexPrefix):
Expand Down

0 comments on commit d1ca685

Please sign in to comment.