aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorYuan Fu2022-11-26 15:05:57 -0800
committerYuan Fu2022-11-26 15:40:24 -0800
commit93c82209374581ae0d52681d56a7dc28e8279f98 (patch)
tree514d525e87d0d183d3f6e7ed5a69d8813bad5552 /lisp/progmodes/python.el
parent447b9d48d966561f9bf65cd3eb0e2c0e60f69d42 (diff)
downloademacs-93c82209374581ae0d52681d56a7dc28e8279f98.tar.gz
emacs-93c82209374581ae0d52681d56a7dc28e8279f98.zip
Reorganize treesit-font-lock-feaure-list's to the new level scheme
* lisp/progmodes/c-ts-mode.el (c-ts-mode--base-mode) * lisp/progmodes/csharp-mode.el (csharp-ts-mode) * lisp/progmodes/java-ts-mode.el (java-ts-mode) * lisp/progmodes/js.el (js-ts-mode) * lisp/progmodes/python.el (python-ts-mode) * lisp/progmodes/sh-script.el (bash-ts-mode) * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Reorganized treesit-font-lock-feature-list.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9bbcac612fd..acfee211358 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6615,11 +6615,11 @@ implementations: `python-mode' and `python-ts-mode'."
6615 (when (treesit-ready-p 'python) 6615 (when (treesit-ready-p 'python)
6616 (treesit-parser-create 'python) 6616 (treesit-parser-create 'python)
6617 (setq-local treesit-font-lock-feature-list 6617 (setq-local treesit-font-lock-feature-list
6618 '(( comment string definition) 6618 '(( comment definition)
6619 ( keyword builtin constant type) 6619 ( keyword string type)
6620 ( assignment decorator escape-sequence 6620 ( assignment builtin constant decorator
6621 string-interpolation number property 6621 escape-sequence number property string-interpolation )
6622 operator bracket delimiter))) 6622 ( bracket delimiter operator)))
6623 (setq-local treesit-font-lock-settings python--treesit-settings) 6623 (setq-local treesit-font-lock-settings python--treesit-settings)
6624 (setq-local imenu-create-index-function 6624 (setq-local imenu-create-index-function
6625 #'python-imenu-treesit-create-index) 6625 #'python-imenu-treesit-create-index)