We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd417aa commit 88066daCopy full SHA for 88066da
elixir-mode.el
@@ -456,7 +456,7 @@ just return nil."
456
(defun elixir-mode-fill-doc-string ()
457
(interactive)
458
(save-excursion
459
- (re-search-backward "@\\(?:module\\)?doc +\"\"\"" nil t)
+ (re-search-backward (rx "@" (or "moduledoc" "typedoc" "doc") space "\"\"\"") nil t)
460
(re-search-forward "\"\"\"" nil t)
461
(set-mark (point))
462
@@ -495,7 +495,7 @@ just return nil."
495
(when pos
496
497
(goto-char pos)
498
- (and (looking-at "\"\"\"")(looking-back "@moduledoc[ \]+\\|@doc[ \]+"
+ (and (looking-at "\"\"\"")(looking-back (rx "@" (or "moduledoc" "typedoc" "doc") (+ space))
499
(line-beginning-position)))))))
500
501
(defun elixir-font-lock-syntactic-face-function (state)
0 commit comments