diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm index b3ead95bd9dc9b..3a9885271812d7 100644 --- a/crates/languages/src/python/highlights.scm +++ b/crates/languages/src/python/highlights.scm @@ -28,15 +28,18 @@ ; Function calls -(decorator - "@" @punctuation.special - (identifier) @function.decorator) - (call function: (attribute attribute: (identifier) @function.method.call)) (call function: (identifier) @function.call) +(decorator + "@" @punctuation.special + (identifier) @function.decorator) +(decorator + "@" @punctuation.special + (call function: (identifier) @function.decorator.call)) + ; Function and class definitions (function_definition