diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index 855c96dfc..21bbbf4ec 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -45,7 +45,8 @@ "input" "int" "isinstance" "issubclass" "iter" "len" "list" "locals" "map" "max" "memoryview" "min" "next" "object" "oct" "open" "ord" "pow" "print" "property" "range" "repr" "reversed" "round" "set" "setattr" "slice" "sorted" "staticmethod" "str" "sum" "super" "tuple" "type" - "vars" "zip" "__import__")) + "vars" "zip" "__import__") + (#set! priority 102)) ; Function definitions (function_definition diff --git a/tests/query/highlights/python/functions.py b/tests/query/highlights/python/functions.py index 7284d3fcc..81dedfbae 100644 --- a/tests/query/highlights/python/functions.py +++ b/tests/query/highlights/python/functions.py @@ -16,3 +16,6 @@ class Foo: Foo().method() # ^^^^^^ @function.method.call + +print() +# ^ @function.builtin