emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 835902179cd: ; Fix recent change in 'c-ts-mode'


From: Eli Zaretskii
Subject: emacs-29 835902179cd: ; Fix recent change in 'c-ts-mode'
Date: Mon, 27 Nov 2023 07:22:08 -0500 (EST)

branch: emacs-29
commit 835902179cdc080fe37224cc102245303044ddcd
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; 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.
---
 lisp/progmodes/c-ts-mode.el | 6 +++---
 1 file 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."
          parent (treesit-node-parent parent) bol args))
 
 (defun c-ts-mode--prev-line-match (regexp)
-  "An indentation matcher that matches if prev line matches REGEXP."
+  "An indentation matcher that matches if previous line matches REGEXP."
   (lambda (_n _p bol &rest _)
     (save-excursion
       (goto-char bol)
@@ -369,8 +369,8 @@ PARENT, BOL, ARGS are the same as other anchor functions."
 MODE is either `c' or `cpp'."
   (let ((common
          `((c-ts-mode--for-each-tail-body-matcher prev-line 
c-ts-mode-indent-offset)
-           ;; If the user types "if (...)" and hit return, they expect
-           ;; the point on the empty line to be indented, this rule
+           ;; If the user types "if (...)" and hits RET, they expect
+           ;; point on the empty line to be indented; this rule
            ;; does that.
            ((and no-node
                  (c-ts-mode--prev-line-match



reply via email to

[Prev in Thread] Current Thread [Next in Thread]