Skip to content

Commit

Permalink
Remove "constant" mode from Elixir
Browse files Browse the repository at this point in the history
Relates to p.1 from highlightjs#730
  • Loading branch information
Sannis committed Sep 7, 2015
1 parent ecbdb53 commit d37cc30
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/languages/elixir.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ function(hljs) {
hljs.HASH_COMMENT_MODE,
CLASS,
FUNCTION,
{
className: 'constant',
begin: '(\\b[A-Z_]\\w*(.)?)+',
relevance: 0
},
{
className: 'symbol',
begin: ':',
Expand Down
2 changes: 1 addition & 1 deletion test/markup/elixir/function-title.expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<span class="hljs-symbol">:ok</span>
<span class="hljs-keyword">end</span>

<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f!</span></span>, <span class="hljs-symbol">do:</span> <span class="hljs-constant">IO.</span>puts <span class="hljs-string">"hello world"</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f!</span></span>, <span class="hljs-symbol">do:</span> IO.puts <span class="hljs-string">"hello world"</span>

x = <span class="hljs-number">5</span>
2 changes: 2 additions & 0 deletions test/markup/elixir/strings-and-sigils.expect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
~R<span class="hljs-string">'this + i\s "a" regex too'</span>
~S<span class="hljs-string">"Some spaces \s\t\n and <span class="hljs-subst">#{interpolation}</span>"</span>
2 changes: 2 additions & 0 deletions test/markup/elixir/strings-and-sigils.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
~R'this + i\s "a" regex too'
~S"Some spaces \s\t\n and #{interpolation}"

0 comments on commit d37cc30

Please sign in to comment.