; 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.
This commit is contained in:
parent
169a5ff752
commit
835902179c
1 changed files with 3 additions and 3 deletions
|
@ -356,7 +356,7 @@ PARENT, BOL, ARGS are the same as other anchor functions."
|
||||||
parent (treesit-node-parent parent) bol args))
|
parent (treesit-node-parent parent) bol args))
|
||||||
|
|
||||||
(defun c-ts-mode--prev-line-match (regexp)
|
(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 _)
|
(lambda (_n _p bol &rest _)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char bol)
|
(goto-char bol)
|
||||||
|
@ -369,8 +369,8 @@ PARENT, BOL, ARGS are the same as other anchor functions."
|
||||||
MODE is either `c' or `cpp'."
|
MODE is either `c' or `cpp'."
|
||||||
(let ((common
|
(let ((common
|
||||||
`((c-ts-mode--for-each-tail-body-matcher prev-line c-ts-mode-indent-offset)
|
`((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
|
;; If the user types "if (...)" and hits RET, they expect
|
||||||
;; the point on the empty line to be indented, this rule
|
;; point on the empty line to be indented; this rule
|
||||||
;; does that.
|
;; does that.
|
||||||
((and no-node
|
((and no-node
|
||||||
(c-ts-mode--prev-line-match
|
(c-ts-mode--prev-line-match
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue