emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/go-mode 8e19ae5 097/495: add some documentation


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 8e19ae5 097/495: add some documentation
Date: Sat, 7 Aug 2021 09:04:51 -0400 (EDT)

branch: elpa/go-mode
commit 8e19ae502bb6ec4735353e25031cecdcda6600df
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    add some documentation
---
 go-mode.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/go-mode.el b/go-mode.el
index 7667ab5..54e6f0f 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -132,6 +132,12 @@
   `(goto-char (nth 8 (syntax-ppss))))
 
 (defun go--backward-irrelevant (&optional stop-at-string)
+  "Skips backwards over any characters that are irrelevant for
+indentation and related tasks.
+
+It skips over whitespace, comments, cases and labels and, if
+STOP-AT-STRING is not true, over strings."
+
   (let (pos (start-pos (point)))
     (skip-chars-backward "\n[:blank:]")
     (if (and (save-excursion (beginning-of-line) (go-in-string-p)) 
(looking-back "`") (not stop-at-string))
@@ -158,6 +164,7 @@
          (point-min))))
 
 (defun go-previous-line-has-dangling-op-p ()
+  "Returns non-nil if the current line is a continuation line."
   (let* ((cur-line (line-number-at-pos))
          (val (gethash cur-line go-dangling-cache 'nope)))
     (if (or (go--buffer-narrowed-p) (equal val 'nope))



reply via email to

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