Dhruv Manilawala
47d80f29a7
Lexer start of line is false only for Mode::Expression ( #8880 )
...
## Summary
This PR fixes the bug in the lexer where the `Mode::Ipython` wasn't
being considered when initializing the soft keyword transformer which
wraps the lexer. This means that if the source code starts with either
`match` or `type` keyword, then the keywords were being considered as
name tokens instead. For example,
```python
match foo:
case bar:
pass
```
This would transform the `match` keyword into an identifier if the mode
is `Ipython`.
The fix is to reverse the condition in the soft keyword initializer so
that any new modes are by default considered as the lexer being at start
of line.
## Test Plan
Add a new test case for `Mode::Ipython` and verify the snapshot.
fixes : #8870
2023-11-28 20:38:25 +00:00
..
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-10-30 12:13:23 +05:30
2023-08-07 16:36:02 +00:00
2023-08-07 16:36:02 +00:00
2023-08-07 16:36:02 +00:00
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-08-07 16:36:02 +00:00
2023-10-30 12:13:23 +05:30
2023-08-07 16:36:02 +00:00
2023-08-07 16:36:02 +00:00
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-24 17:55:41 -06:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-11-07 07:16:06 -05:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-29 02:55:39 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-10-01 07:58:20 +05:30
2023-10-01 07:58:20 +05:30
2023-10-01 07:58:20 +05:30
2023-10-03 19:38:03 +05:30
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-10-05 23:12:09 +05:30
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-29 02:55:39 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-25 15:13:21 +00:00
2023-09-25 15:13:21 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-11-28 20:38:25 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-28 20:38:06 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-25 11:45:44 +01:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-09-11 19:12:46 +00:00
2023-08-07 16:36:02 +00:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-11-24 17:55:41 -06:00
2023-08-17 14:34:05 +00:00
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-10-30 12:13:23 +05:30
2023-11-24 17:55:41 -06:00
2023-07-27 09:29:11 +00:00
2023-10-30 12:13:23 +05:30
2023-07-27 09:29:11 +00:00
2023-11-24 17:55:41 -06:00
2023-10-30 12:13:23 +05:30
2023-07-27 09:29:11 +00:00
2023-10-30 12:13:23 +05:30
2023-07-27 09:29:11 +00:00
2023-11-24 17:55:41 -06:00
2023-10-30 12:13:23 +05:30
2023-08-18 15:34:54 +00:00
2023-07-27 09:29:11 +00:00
2023-10-30 12:13:23 +05:30
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-10-30 12:13:23 +05:30
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-10-30 12:13:23 +05:30
2023-11-24 17:55:41 -06:00
2023-10-30 12:13:23 +05:30
2023-10-30 12:13:23 +05:30
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00
2023-11-24 17:55:41 -06:00