Skip to content

Conversation

wookayin
Copy link
Owner

Add new highlight group 'semshiKeyword'

Fixes #7.

@wookayin wookayin force-pushed the highlight-keyword branch 3 times, most recently from 7caefc4 to 7b922d3 Compare April 20, 2023 20:50
@wookayin
Copy link
Owner Author

wookayin commented Apr 20, 2023

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

@wookayin wookayin force-pushed the highlight-keyword branch from 7b922d3 to 9fa1212 Compare April 21, 2023 03:05
@wookayin wookayin force-pushed the highlight-keyword branch 2 times, most recently from 7916aa1 to fcc5597 Compare September 23, 2023 14:35
The highlight group name: semshiKeywordArgument.
(see https://docs.python.org/3/glossary.html#term-argument)

By default the hlgroup is linked to `@parameter.python` to ensure better
compatibility with treesitter.
@wookayin wookayin added this to the 0.5.0 milestone Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlight explicit keyword arguments
1 participant