mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 19:09:36 +00:00
Fix some fixed-point literal lexing issues (#1914)
- No fractional digits are necessary after the decimal point, e.g. `42.` is valid instead of `42.0` - Error messages refer to "fixed-point" not "integer" constants - Test more carefully for lexing unrelated to underscores
This commit is contained in:
@@ -30,3 +30,7 @@ println 123.456_
|
||||
; bad ('_' next to '.')
|
||||
println 1_.618
|
||||
println 2._718
|
||||
|
||||
; bad ('_' after 'q')
|
||||
println 1q_2
|
||||
println 1q2_3
|
||||
|
||||
Reference in New Issue
Block a user