aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorEli Zaretskii2022-11-20 10:30:38 +0200
committerEli Zaretskii2022-11-20 10:30:38 +0200
commit657947dc7cf01a13a4fa260691a6fa0147107950 (patch)
treea24fb791d953b91a70b0f562d4702687d8724490 /lisp/progmodes/python.el
parent4fa13b2d838e11cbe3b713f3172721cb61d499f3 (diff)
downloademacs-657947dc7cf01a13a4fa260691a6fa0147107950.tar.gz
emacs-657947dc7cf01a13a4fa260691a6fa0147107950.zip
; Improve recently-modified documentation
* lisp/progmodes/python.el (python-base-mode) (python--treesit-fontify-string): * lisp/textmodes/css-mode.el (css-base-mode): * lisp/treesit.el (treesit-ready-p, treesit-comment-end) (treesit-simple-indent-presets): Fix typos and wording in doc strings. * doc/lispref/parsing.texi (Tree-sitter major modes): * doc/lispref/modes.texi (Parser-based Indentation): Fix wording and add cross-references.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d16aeaf0133..2f967ebab24 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1016,7 +1016,7 @@ It makes underscores and dots word constituent chars.")
1016 "Fontify string. 1016 "Fontify string.
1017NODE is the string node. Do not fontify the initial f for 1017NODE is the string node. Do not fontify the initial f for
1018f-strings. OVERRIDE is the override flag described in 1018f-strings. OVERRIDE is the override flag described in
1019`treesit-font-lock-rules'. START and END marks the region to be 1019`treesit-font-lock-rules'. START and END mark the region to be
1020fontified." 1020fontified."
1021 (let* ((string-beg (treesit-node-start node)) 1021 (let* ((string-beg (treesit-node-start node))
1022 (string-end (treesit-node-end node)) 1022 (string-end (treesit-node-end node))
@@ -6482,8 +6482,8 @@ Add import for undefined name `%s' (empty to skip): "
6482(define-derived-mode python-base-mode prog-mode "Python" 6482(define-derived-mode python-base-mode prog-mode "Python"
6483 "Generic major mode for editing Python files. 6483 "Generic major mode for editing Python files.
6484 6484
6485This is a generic major mode intended to be inherited by a 6485This is a generic major mode intended to be inherited by
6486concrete implementations. Currently there two concrete 6486concrete implementations. Currently there are two concrete
6487implementations: `python-mode' and `python-ts-mode'." 6487implementations: `python-mode' and `python-ts-mode'."
6488 (setq-local tab-width 8) 6488 (setq-local tab-width 8)
6489 (setq-local indent-tabs-mode nil) 6489 (setq-local indent-tabs-mode nil)