summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-06-03 11:34:11 +0300
committerEli Zaretskii <eliz@gnu.org>2023-06-03 11:34:11 +0300
commitede3535051a8f3b209b830adcaba9cb1ddf58685 (patch)
tree2fa8686ebff7bfba9f3c5b0fbba715edb7ed1f12 /lisp
parent8ec786349e18068bff39b1387bc4a88d62265e34 (diff)
downloademacs-ede3535051a8f3b209b830adcaba9cb1ddf58685.tar.gz
emacs-ede3535051a8f3b209b830adcaba9cb1ddf58685.tar.bz2
emacs-ede3535051a8f3b209b830adcaba9cb1ddf58685.zip
; Fix last change
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--syntax-propertize): Doc fix. (Bug#63708)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/rust-ts-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el
index 360fcc89491..c3cf8d0cf44 100644
--- a/lisp/progmodes/rust-ts-mode.el
+++ b/lisp/progmodes/rust-ts-mode.el
@@ -350,10 +350,12 @@ Return nil if there is no name or if NODE is not a defun node."
(treesit-node-child-by-field-name node "name") t))))
(defun rust-ts-mode--syntax-propertize (beg end)
- "Apply syntax properties to various special characters with
+ "Apply syntax properties to special characters between BEG and END.
+
+Apply syntax properties to various special characters with
contextual meaning between BEG and END.
-' should be treated as string when used for char literals.
+The apostrophe \\=' should be treated as string when used for char literals.
< and > are usually punctuation, e.g., as greater/less-than. But
when used for types, they should be considered pairs.