diff options
| author | Daniel MartÃn | 2022-12-11 17:33:13 +0100 |
|---|---|---|
| committer | Yuan Fu | 2022-12-12 15:08:55 -0800 |
| commit | 631908f70172a117f83596936abe7f042005b57a (patch) | |
| tree | f1dc4cf8e71fd1d6e18a6cd373682f65486e2790 /lisp/progmodes/python.el | |
| parent | 5d4274d9b65d87fe7d672e7a930abd615f431f34 (diff) | |
| download | emacs-631908f70172a117f83596936abe7f042005b57a.tar.gz emacs-631908f70172a117f83596936abe7f042005b57a.zip | |
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.el | 3 |
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.") | |||
| 993 | 993 | ||
| 994 | (defvar python--treesit-operators | 994 | (defvar python--treesit-operators |
| 995 | '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%=" | 995 | '("-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "%" "%=" |
| 996 | "^" "+" "+=" "<" "<<" "<=" "<>" "=" "==" ">" ">=" ">>" "|" "~" "@" "@=")) | 996 | "^" "+" "->" "+=" "<" "<<" "<=" "<>" "=" ":=" "==" ">" ">=" ">>" "|" |
| 997 | "~" "@" "@=")) | ||
| 997 | 998 | ||
| 998 | (defvar python--treesit-special-attributes | 999 | (defvar python--treesit-special-attributes |
| 999 | '("__annotations__" "__closure__" "__code__" | 1000 | '("__annotations__" "__closure__" "__code__" |