aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Kangas2024-01-11 00:32:15 +0100
committerStefan Kangas2024-01-11 00:32:15 +0100
commit63411709a8dbad8b17c7f1e0cfed99f4aeb174a1 (patch)
tree809f248297e7598e87323f33eacfb2899090da42 /lisp/progmodes/python.el
parent824cf54951c076e2b6a0e3a8e6fb1342cf58b8b6 (diff)
downloademacs-63411709a8dbad8b17c7f1e0cfed99f4aeb174a1.tar.gz
emacs-63411709a8dbad8b17c7f1e0cfed99f4aeb174a1.zip
; Fix typos
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 3247291b6ee..9849fde8588 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1107,7 +1107,7 @@ fontified."
1107 1107
1108(defun python--treesit-fontify-union-types (node override start end &optional type-regex &rest _) 1108(defun python--treesit-fontify-union-types (node override start end &optional type-regex &rest _)
1109 "Fontify nested union types in the type hints. 1109 "Fontify nested union types in the type hints.
1110For examlpe, Lvl1 | Lvl2[Lvl3[Lvl4[Lvl5 | None]], Lvl2]. This 1110For example, Lvl1 | Lvl2[Lvl3[Lvl4[Lvl5 | None]], Lvl2]. This
1111structure is represented via nesting binary_operator and 1111structure is represented via nesting binary_operator and
1112subscript nodes. This function iterates over all levels and 1112subscript nodes. This function iterates over all levels and
1113highlight identifier nodes. If TYPE-REGEX is not nil fontify type 1113highlight identifier nodes. If TYPE-REGEX is not nil fontify type
@@ -1265,7 +1265,7 @@ fontified."
1265 (subscript (identifier) @font-lock-type-face) 1265 (subscript (identifier) @font-lock-type-face)
1266 (subscript (attribute attribute: (identifier) @font-lock-type-face))])) 1266 (subscript (attribute attribute: (identifier) @font-lock-type-face))]))
1267 1267
1268 ;; Patern matching: case [str(), pack0.Type0()]. Take only the 1268 ;; Pattern matching: case [str(), pack0.Type0()]. Take only the
1269 ;; last identifier. 1269 ;; last identifier.
1270 (class_pattern (dotted_name (identifier) @font-lock-type-face :anchor)) 1270 (class_pattern (dotted_name (identifier) @font-lock-type-face :anchor))
1271 1271