From 7850b7bb3a7f6a53c9770987e061dd978f65f399 Mon Sep 17 00:00:00 2001 From: Jonathan Crossman Date: Mon, 16 Jul 2018 15:32:55 -0400 Subject: [PATCH] Use @doc blocks for documentation --- lib/languages/ex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/languages/ex.js b/lib/languages/ex.js index 353f77e..5b58d78 100644 --- a/lib/languages/ex.js +++ b/lib/languages/ex.js @@ -5,7 +5,7 @@ module.exports = { // Find document blocks in heredocs that are arguments of the @apidoc // module attribute. Elixir heredocs can be enclosed between """ and """ or // between ''' and '''. Heredocs in ~s and ~S sigils are also supported. - docBlocksRegExp: /@apidoc\s*(~[sS])?"""\uffff?(.+?)\uffff?(?:\s*)?"""|@apidoc\s*(~[sS])?'''\uffff?(.+?)\uffff?(?:\s*)?'''/g, + docBlocksRegExp: /@doc\s*(~[sS])?"""\uffff?(.+?)\uffff?(?:\s*)?"""|@doc\s*(~[sS])?'''\uffff?(.+?)\uffff?(?:\s*)?'''/g, // Remove not needed tabs at the beginning inlineRegExp: /^(\t*)?/gm };