]> git.eshelyaron.com Git - emacs.git/commitdiff
(python--treesit-settings): Remove duplicate matcher
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 28 Dec 2022 13:12:44 +0000 (15:12 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 28 Dec 2022 13:13:25 +0000 (15:13 +0200)
* lisp/progmodes/python.el (python--treesit-settings): Remove
duplicate matcher (which found itself under 'function' in addition
to 'definition').

lisp/progmodes/python.el

index 9a6f807f4f2c07a8e2958ad137f6a7cabd305f07..07f86d315510373e8b190eeb20ba808fd2ba2b3b 100644 (file)
@@ -1096,9 +1096,7 @@ fontified."
 
    :feature 'function
    :language 'python
-   '((function_definition
-      name: (identifier) @font-lock-function-name-face)
-     (call function: (identifier) @font-lock-function-name-face)
+   '((call function: (identifier) @font-lock-function-name-face)
      (call function: (attribute
                       attribute: (identifier) @font-lock-function-name-face)))