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.
This commit is contained in:
@@ -993,7 +993,8 @@ It makes underscores and dots word constituent chars.")
|
|||||||
|
|
||||||
(defvar python--treesit-operators
|
(defvar python--treesit-operators
|
||||||
'("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%="
|
'("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%="
|
||||||
"^" "+" "+=" "<" "<<" "<=" "<>" "=" "==" ">" ">=" ">>" "|" "~" "@" "@="))
|
"^" "+" "->" "+=" "<" "<<" "<=" "<>" "=" ":=" "==" ">" ">=" ">>" "|"
|
||||||
|
"~" "@" "@="))
|
||||||
|
|
||||||
(defvar python--treesit-special-attributes
|
(defvar python--treesit-special-attributes
|
||||||
'("__annotations__" "__closure__" "__code__"
|
'("__annotations__" "__closure__" "__code__"
|
||||||
|
|||||||
Reference in New Issue
Block a user