aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-11-27 14:21:19 +0200
committerEli Zaretskii2023-11-27 14:21:19 +0200
commit835902179cdc080fe37224cc102245303044ddcd (patch)
tree827b66c242883a1d70527b16100af77e7cbf9f5e
parent169a5ff7524e518358e56a547bd0471ebc0069b3 (diff)
downloademacs-835902179cdc080fe37224cc102245303044ddcd.tar.gz
emacs-835902179cdc080fe37224cc102245303044ddcd.zip
; Fix recent change in 'c-ts-mode'
* lisp/progmodes/c-ts-mode.el (c-ts-mode--prev-line-match) (c-ts-mode--indent-styles): Fix wording of strings and comments.
-rw-r--r--lisp/progmodes/c-ts-mode.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index 1a7424db5d9..31a9d0fc886 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -356,7 +356,7 @@ PARENT, BOL, ARGS are the same as other anchor functions."
356 parent (treesit-node-parent parent) bol args)) 356 parent (treesit-node-parent parent) bol args))
357 357
358(defun c-ts-mode--prev-line-match (regexp) 358(defun c-ts-mode--prev-line-match (regexp)
359 "An indentation matcher that matches if prev line matches REGEXP." 359 "An indentation matcher that matches if previous line matches REGEXP."
360 (lambda (_n _p bol &rest _) 360 (lambda (_n _p bol &rest _)
361 (save-excursion 361 (save-excursion
362 (goto-char bol) 362 (goto-char bol)
@@ -369,8 +369,8 @@ PARENT, BOL, ARGS are the same as other anchor functions."
369MODE is either `c' or `cpp'." 369MODE is either `c' or `cpp'."
370 (let ((common 370 (let ((common
371 `((c-ts-mode--for-each-tail-body-matcher prev-line c-ts-mode-indent-offset) 371 `((c-ts-mode--for-each-tail-body-matcher prev-line c-ts-mode-indent-offset)
372 ;; If the user types "if (...)" and hit return, they expect 372 ;; If the user types "if (...)" and hits RET, they expect
373 ;; the point on the empty line to be indented, this rule 373 ;; point on the empty line to be indented; this rule
374 ;; does that. 374 ;; does that.
375 ((and no-node 375 ((and no-node
376 (c-ts-mode--prev-line-match 376 (c-ts-mode--prev-line-match