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:
parent
5d4274d9b6
commit
631908f701
1 changed files with 2 additions and 1 deletions
|
@ -993,7 +993,8 @@ It makes underscores and dots word constituent chars.")
|
|||
|
||||
(defvar python--treesit-operators
|
||||
'("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%="
|
||||
"^" "+" "+=" "<" "<<" "<=" "<>" "=" "==" ">" ">=" ">>" "|" "~" "@" "@="))
|
||||
"^" "+" "->" "+=" "<" "<<" "<=" "<>" "=" ":=" "==" ">" ">=" ">>" "|"
|
||||
"~" "@" "@="))
|
||||
|
||||
(defvar python--treesit-special-attributes
|
||||
'("__annotations__" "__closure__" "__code__"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue