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

Commit 9032876

Browse files
committed
update elixir syntax
1 parent 6c828b5 commit 9032876

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/languages/ex.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
* Elixir
33
*/
44
module.exports = {
5-
// Find document blocks in heredocs that are arguments of the @apidoc
6-
// module attribute. Elixir heredocs can be enclosed between """ and """ or
7-
// between ''' and '''. Heredocs in ~s and ~S sigils are also supported.
8-
docBlocksRegExp: /@apidoc\s*(~[sS])?"""\uffff?(.+?)\uffff?(?:\s*)?"""|@apidoc\s*(~[sS])?'''\uffff?(.+?)\uffff?(?:\s*)?'''/g,
9-
// Remove not needed tabs at the beginning
10-
inlineRegExp: /^(\t*)?/gm
5+
// Find document blocks between '#{' and '#}'
6+
docBlocksRegExp: /\#*\{\uffff?(.+?)\uffff?(?:\s*)?\#+\}/g,
7+
// Remove not needed '#' and tabs at the beginning
8+
inlineRegExp: /^(\s*)?(\#*)[ ]?/gm
119
};

0 commit comments

Comments
 (0)