[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 497018dd5c3: ; Fix typos in docstrings in c-ts-common.el
From: |
Yuan Fu |
Subject: |
emacs-29 497018dd5c3: ; Fix typos in docstrings in c-ts-common.el |
Date: |
Fri, 24 Feb 2023 23:50:16 -0500 (EST) |
branch: emacs-29
commit 497018dd5c323ee9cedb98209cb67aadf959c42c
Author: Daniel MartÃn <mardani29@yahoo.es>
Commit: Yuan Fu <casouri@gmail.com>
; Fix typos in docstrings in c-ts-common.el
* lisp/progmodes/c-ts-common.el:
(c-ts-common-statement-offset): Fix typo.
---
lisp/progmodes/c-ts-common.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el
index de0ec0d2876..85db39aaeae 100644
--- a/lisp/progmodes/c-ts-common.el
+++ b/lisp/progmodes/c-ts-common.el
@@ -314,7 +314,9 @@ If NODE is nil, return nil."
nil))
(defun c-ts-common-statement-offset (node parent &rest _)
- "This anchor is used for children of a statement inside a block.
+ "Return an indent offset for a statement inside a block.
+
+Assumes the anchor is (point-min), i.e., the 0th column.
This function basically counts the number of block nodes (i.e.,
brackets) (defined by `c-ts-common-indent-block-type-regexp')
@@ -325,6 +327,9 @@ To support GNU style, on each block level, this function
also
checks whether the opening bracket { is on its own line, if so,
it adds an extra level, except for the top-level.
+It also has special handling for bracketless statements and
+else-if statements, which see.
+
PARENT is NODE's parent, BOL is the beginning of non-whitespace
characters on the current line."
(let ((level 0))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 497018dd5c3: ; Fix typos in docstrings in c-ts-common.el,
Yuan Fu <=