aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/python/functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/python/functions.py')
-rw-r--r--tests/query/highlights/python/functions.py13
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