Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

update elixir syntax #65

Merged
merged 5 commits into from
Oct 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions lib/languages/ex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
* Elixir
*/
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,
// Remove not needed tabs at the beginning
inlineRegExp: /^(\t*)?/gm
// Find document blocks between '#{' and '#}'
docBlocksRegExp: /\#*\s?\{\uffff?(.+?)\uffff?(?:\s*)?\#+\s?\}/g,
// Remove not needed '#' and tabs at the beginning
inlineRegExp: /^(\s*)?(\#*)[ ]?/gm
};