diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm index ffc1c5633c..02f1a57a88 100644 --- a/crates/languages/src/python/highlights.scm +++ b/crates/languages/src/python/highlights.scm @@ -52,6 +52,20 @@ (function_definition name: (identifier) @function.definition) +((call + function: (identifier) @_isinstance + arguments: (argument_list + (_) + (identifier) @type)) + (#eq? @_isinstance "isinstance")) + +((call + function: (identifier) @_issubclass + arguments: (argument_list + (identifier) @type + (identifier) @type)) + (#eq? @_issubclass "issubclass")) + ; Function arguments (function_definition parameters: (parameters