Skip to content

Commit b0aa31d

Browse files
committed
Fix docstring formatting
1 parent d466d11 commit b0aa31d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

elixir-format.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
(require 'ansi-color)
2727

2828
(defcustom elixir-format-arguments nil
29-
"Additional arguments to 'mix format'"
29+
"Additional arguments to 'mix format'."
3030
:type '(repeat string)
3131
:group 'elixir
3232
:group 'elixir-format)

elixir-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ just return nil."
520520
(forward-line 1)))))
521521

522522
(defun elixir--docstring-p (&optional pos)
523-
"Check to see if there is a docstring at pos."
523+
"Check to see if there is a docstring at POS."
524524
(let ((pos (or pos (elixir-ppss-comment-or-string-start
525525
(parse-partial-sexp (point-min) (point))))))
526526
(when pos

elixir-smie.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
(looking-back elixir-smie--operator-regexp (- (point) 3) t))))
220220

221221
(defun elixir-smie-current-line-contains-built-in-keyword-p ()
222-
"Return non-nil if the current line contains built in keywords with a `.'"
222+
"Return non-nil if the current line contains built in keywords with a \".\"."
223223
(save-excursion
224224
(beginning-of-line)
225225
(looking-at ".+\\.\\(case\\|try\\|if\\|rescue\\)")))
@@ -292,7 +292,7 @@
292292
(not (looking-back ".+fn.+")))))))))
293293

294294
(defun elixir-smie--same-line-as-parent (parent-pos child-pos)
295-
"Return non-nil if `child-pos' is on same line as `parent-pos'."
295+
"Return non-nil if CHILD-POS is on same line as PARENT-POS."
296296
(= (line-number-at-pos parent-pos) (line-number-at-pos child-pos)))
297297

298298
(defun elixir-smie-forward-token ()
@@ -906,8 +906,7 @@
906906
Rules:
907907
1. If the previous line is empty, indent as the basic indentation
908908
at the beginning of the heredoc.
909-
2. If the previous line is not empty, indent as the previous line.
910-
"
909+
2. If the previous line is not empty, indent as the previous line."
911910
(if (eq major-mode 'elixir-mode)
912911
(if (elixir-smie--heredoc-at-current-point-p)
913912
(let ((indent

0 commit comments

Comments
 (0)