Python 3.5 new keywords, async and await, not syntax highlighted
See original GitHub issueFrom https://github.com/pypa/warehouse/issues/3770:
See for instance https://pypi.org/project/influxdbpusher/
It has code snippets with
async def
andawait
, which are not being properly highlighted as keywords.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Issue 29706: IDLE needs syntax highlighting for async and await
I presume you would like 'async' and 'await' highlighted as keywords. However, IDLE takes its definition of 'keyword' from keyword.kwlist. ' ...
Read more >New python async and await keywords - Stack Overflow
This PEP assumes that the asynchronous tasks are scheduled and coordinated by an Event Loop [..] While the PEP is not tied to...
Read more >How the heck does async/await work in Python 3.5?
My hopes and dreams for the future The problem is that Python 3.5 is so new that async / await is also very...
Read more >Highlight `async` and `await` as keywords in Python 3.7
Highlight them as keywords; Highlight wrong usages (variable, class, function names); Update compatibility inspection to raise warning only if Python 3.7+ ...
Read more >async/await in Python 3.5 and why it is awesome - YouTube
Yury Selivanov - async / await in Python 3.5 and why it is awesome[EuroPython 2016][21 July 2016][Bilbao, Euskadi, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
looks like it might just be that we need to use the “python3” lexer by default: http://pygments.org/demo/6734166/
Looks like I’m not the only package author with this problem, see https://pypi.org/project/aiokafka/0.4.3/