Instagram / Instagram/LibCST

Parse error when no space between keyword and float

Open
#950 0 comments 0 reactions 0 assignees View on GitHub
bug parsing
Dominant language
Python
Stars
1.9k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

```python
handcrafted = [
# looks like an attribute lookup, actually keyword + float
'_ in.0',
'while.0:_',
'_ if _ else.0',
]
for s in handcrafted:
assert compiles(s), repr(s)
assert not libcst_native_parses(s), repr(s)
```

_Originally posted by @Zac-HD in https://github.com/Instagram/LibCST/issues/930#issuecomment-1581965630_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.