emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 631908f701 6/9: Add "->" to python--treesit-operators (bug#5996


From: Yuan Fu
Subject: emacs-29 631908f701 6/9: Add "->" to python--treesit-operators (bug#59968)
Date: Mon, 12 Dec 2022 18:09:38 -0500 (EST)

branch: emacs-29
commit 631908f70172a117f83596936abe7f042005b57a
Author: Daniel Martín <mardani29@yahoo.es>
Commit: Yuan Fu <casouri@gmail.com>

    Add "->" to python--treesit-operators (bug#59968)
    
    * lisp/progmodes/python.el (python--treesit-operators): Add "->", used
    to specify the return types of functions in Python.
---
 lisp/progmodes/python.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ebee703499..0e0898ffe2 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -993,7 +993,8 @@ It makes underscores and dots word constituent chars.")
 
 (defvar python--treesit-operators
   '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%="
-    "^" "+" "+=" "<" "<<" "<=" "<>" "=" "==" ">" ">=" ">>" "|" "~" "@" "@="))
+    "^" "+" "->" "+=" "<" "<<" "<=" "<>" "=" ":=" "==" ">" ">=" ">>" "|"
+    "~" "@" "@="))
 
 (defvar python--treesit-special-attributes
   '("__annotations__" "__closure__" "__code__"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]