]> git.eshelyaron.com Git - emacs.git/commitdiff
Add "->" to python--treesit-operators (bug#59968)
authorDaniel Martín <mardani29@yahoo.es>
Sun, 11 Dec 2022 16:33:13 +0000 (17:33 +0100)
committerYuan Fu <casouri@gmail.com>
Mon, 12 Dec 2022 23:08:55 +0000 (15:08 -0800)
* lisp/progmodes/python.el (python--treesit-operators): Add "->", used
to specify the return types of functions in Python.

lisp/progmodes/python.el

index ebee703499aa74c2bbb913af039611f84f98b711..0e0898ffe288580b6f7d4370c06158863b9e349c 100644 (file)
@@ -993,7 +993,8 @@ It makes underscores and dots word constituent chars.")
 
 (defvar python--treesit-operators
   '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%="
-    "^" "+" "+=" "<" "<<" "<=" "<>" "=" "==" ">" ">=" ">>" "|" "~" "@" "@="))
+    "^" "+" "->" "+=" "<" "<<" "<=" "<>" "=" ":=" "==" ">" ">=" ">>" "|"
+    "~" "@" "@="))
 
 (defvar python--treesit-special-attributes
   '("__annotations__" "__closure__" "__code__"