diff --git a/lib/languages/ex.js b/lib/languages/ex.js index c5f91f4..353f77e 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*)?"""|'''\uffff?(.+?)\uffff?(?:\s*)?''')/g, + docBlocksRegExp: /@apidoc\s*(~[sS])?"""\uffff?(.+?)\uffff?(?:\s*)?"""|@apidoc\s*(~[sS])?'''\uffff?(.+?)\uffff?(?:\s*)?'''/g, // Remove not needed tabs at the beginning inlineRegExp: /^(\t*)?/gm };