tree-sitter-python icon indicating copy to clipboard operation
tree-sitter-python copied to clipboard

`await` not parse properly after `in`

Open WhyNotHugo opened this issue 3 years ago • 1 comments

In this specific example, the await keyword isn't being properly highlighted:

async def region_exists(region: str) -> bool:
    return region in await all_regions()
#                    ^^^^^ This keyword is not highlighted properly

Huh, it seems that GitHub also doesn't highlight it properly.

WhyNotHugo avatar Sep 16 '21 12:09 WhyNotHugo

Huh, it seems that GitHub also doesn't highlight it properly.

github/linguist uses tree-sitter-python for its highlighting

obataku avatar Jul 05 '22 04:07 obataku