From 631908f70172a117f83596936abe7f042005b57a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=ADn?= Date: Sun, 11 Dec 2022 17:33:13 +0100 Subject: [PATCH] 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 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__" -- 2.39.2