summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorDaniel Martín <mardani29@yahoo.es>2022-12-11 17:33:13 +0100
committerYuan Fu <casouri@gmail.com>2022-12-12 15:08:55 -0800
commit631908f70172a117f83596936abe7f042005b57a (patch)
treef1dc4cf8e71fd1d6e18a6cd373682f65486e2790 /lisp/progmodes/python.el
parent5d4274d9b65d87fe7d672e7a930abd615f431f34 (diff)
downloademacs-631908f70172a117f83596936abe7f042005b57a.tar.gz
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.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ebee703499a..0e0898ffe28 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__"