wookayin / semshi

🌈 Semantic Highlighting for Python in Neovim
79 stars 5 forks source link

Highlight keyword arguments in python call #10

Open wookayin opened 1 year ago

wookayin commented 1 year ago

Add new highlight group 'semshiKeyword'

Fixes #7.

wookayin commented 1 year ago

Python 3.6 ~ 3.8:

_ast.keyword does not have attribute lineno and col_offset, despite mentioned in the spec: https://docs.python.org/3.7/library/ast.html#ast.AST

So there will be no semshiKeywordArgument for python < 3.9.

See https://bugs.python.org/issue40141