mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
fix(python): highlight function calls correctly (#7728)
This commit is contained in:
parent
db8689da4a
commit
1a314a58d6
3 changed files with 77 additions and 42 deletions
13
tests/query/highlights/python/functions.py
Normal file
13
tests/query/highlights/python/functions.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
def func() -> None: ...
|
||||
|
||||
_ = func()
|
||||
# ^^^^ @function.call
|
||||
|
||||
"{}".format(1)
|
||||
# ^^^^^^ @function.method.call
|
||||
|
||||
class Foo:
|
||||
def method(self) -> None: ...
|
||||
|
||||
Foo().method()
|
||||
# ^^^^^^ @function.method.call
|
||||
Loading…
Add table
Add a link
Reference in a new issue