diff options
fix(python): highlight function calls correctly (#7728)
Diffstat (limited to 'tests/query/highlights/python/functions.py')
| -rw-r--r-- | tests/query/highlights/python/functions.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/query/highlights/python/functions.py b/tests/query/highlights/python/functions.py new file mode 100644 index 000000000..6d3028433 --- /dev/null +++ b/tests/query/highlights/python/functions.py @@ -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 |
