From: Daniel Martín Date: Sun, 11 Dec 2022 16:33:13 +0000 (+0100) Subject: Add "->" to python--treesit-operators (bug#59968) X-Git-Tag: emacs-29.0.90~1213 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=631908f70172a117f83596936abe7f042005b57a;p=emacs.git 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. --- 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__"