python - "Unexpected token" error on ellipsis
- Dominant language
- JavaScript
- Stars
- 6.5k
- Forks
- 772
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
a "Unexpected token" error occurs on an ellipsis literal (`...`), which is valid python syntax: see https://docs.python.org/3/library/constants.html#Ellipsis
**To Reproduce**
Steps to reproduce the behavior:
1. Go to the ast viewer site
2. change language to python
3. input an ellipsis (`...`)
**Expected behavior**
no error
**Screenshots**

**Browser (please complete the following information):**
- OS: windows 10
- Browser firefox
- Version: 121.0
**astexplorer settings:**
- Selected parser: python
- Contents of the local storage key `explorerSettingsV1` (code can be removed if you don't want it to be public):
```json
{
"showTransformPanel": false,
"parserSettings": {},
"parserPerCategory": {},
"workbench": {
"parser": "python",
"code": "...",
"keyMap": "default",
"transform": {
"code": "",
"transformer": null
}
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.