coderkalyan / coderkalyan/femtoc
lex: recognize double period slice vs floating point
Open
good first issue
- Dominant language
- Zig
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
The lexer is getting confused with the text `array[1..3]`, presumably because it detects `1.` as a float, and then eats that and gets confused on what `.` means after that. `array[1 .. 3]` works. Add a check in the floating point parser to make sure .. is recognized as a priority token over associating with the decimal.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.