aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/python/functions.py
blob: 81dedfbaeded2850b1074e2a4b96c253d7cd045c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
def func() -> None: ...

_ = func()
#   ^^^^ @function.call

"{}".format(1)
#    ^^^^^^ @function.method.call

class Foo:
    def method(self) -> None: ...
#              ^^^^ @variable.builtin

    @classmethod
    def clsmethod(cls) -> None: ...
#                 ^^^ @variable.builtin

Foo().method()
#     ^^^^^^ @function.method.call

print()
# ^ @function.builtin