This should improve parsing of expressions with a division (/) operator before a line break. Previously the scanner treated those as the start of a regular expression literal (/..../).
For example:
foo /
5
Checklist:
[x] All tests pass in CI.
[x] There are sufficient tests for the new fix/feature.
[x] Grammar rules have not been renamed unless absolutely necessary.
[x] The conflicts section hasn't grown too much.
[x] The parser size hasn't grown too much (check the value of STATE_COUNT in src/parser.c).
This should improve parsing of expressions with a division (
/
) operator before a line break. Previously the scanner treated those as the start of a regular expression literal (/..../
).For example:
Checklist: