Skip to content

Commit

Permalink
Merge pull request apidoc#22 from sldab/feature/fix_apiuse_in_elixir
Browse files Browse the repository at this point in the history
Fix Elixir regexp
  • Loading branch information
rottmann committed Dec 18, 2015
2 parents 979e693 + bfdee93 commit 8541bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/languages/ex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

0 comments on commit 8541bc4

Please sign in to comment.