[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 631908f701 6/9: Add "->" to python--treesit-operators (bug#5996
From: |
Yuan Fu |
Subject: |
emacs-29 631908f701 6/9: Add "->" to python--treesit-operators (bug#59968) |
Date: |
Mon, 12 Dec 2022 18:09:38 -0500 (EST) |
branch: emacs-29
commit 631908f70172a117f83596936abe7f042005b57a
Author: Daniel MartÃn <mardani29@yahoo.es>
Commit: Yuan Fu <casouri@gmail.com>
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 ebee703499..0e0898ffe2 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__"
- emacs-29 updated (5b178efd85 -> 0f9e6532b1), Yuan Fu, 2022/12/12
- emacs-29 ca67d988d8 3/9: Add cmake-ts-mode, Yuan Fu, 2022/12/12
- emacs-29 647b6a8099 1/9: Add expression for generic_name in csharp-ts-mode (bug#59897), Yuan Fu, 2022/12/12
- emacs-29 8ec923775d 2/9: Tweak various ts-mode's indent and fontification (bug#59931), Yuan Fu, 2022/12/12
- emacs-29 5d4274d9b6 5/9: ; * admin/notes/tree-sitter/build-module/build.sh: Add -fPIC., Yuan Fu, 2022/12/12
- emacs-29 631908f701 6/9: Add "->" to python--treesit-operators (bug#59968),
Yuan Fu <=
- emacs-29 0f9e6532b1 9/9: Use font-lock-number-face for numeric values in csharp-mode, Yuan Fu, 2022/12/12
- emacs-29 d264b75669 4/9: Align C++ access specifiers to their enclosing class/struct/union, Yuan Fu, 2022/12/12
- emacs-29 c0fe6c72ce 7/9: Improve dockerfile-ts-mode imenu generation (Bug#59979), Yuan Fu, 2022/12/12
- emacs-29 4bccb7b211 8/9: Make treesit-query-validate create a read-only buffer, Yuan Fu, 2022/12/12