"Try" blocks don't support the "else" ternary keyword.
Open
Nobody has claimed this yet.
feature
lexer
low priority
- Dominant language
- Python
- Stars
- 459
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Migrated issue, originally created by Anonymous
[http://www.makotemplates.org/trac/browser/mako/parsetree.py#L96 parsetree.py:96] needs to be:
'try':set(['except', 'else', 'finally']),
...but I don't know enough about Mako internally to know what '''else''' (hehe) is required to make this work.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with parsetree.py at line 96 and inspect how the existing try, except, and finally relationships are represented. Confirm the required parser behavior for a try block with an else clause, then verify that the issue's example is accepted by the relevant test coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100