Skip to content

Commit

Permalink
Merge pull request #960 from bjfish/patch-1
Browse files Browse the repository at this point in the history
Update elixir.rb with defstruct and defguardp?
  • Loading branch information
dblessing authored Aug 6, 2018
2 parents ab186a7 + e91e2a4 commit 9c86bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/elixir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Elixir < RegexLexer
rule /#.*$/, Comment::Single
rule %r{\b(case|cond|end|bc|lc|if|unless|try|loop|receive|fn|defmodule|
defp?|defprotocol|defimpl|defrecord|defmacrop?|defdelegate|
defexception|exit|raise|throw|after|rescue|catch|else)\b(?![?!])|
defexception|defguardp?|defstruct|exit|raise|throw|after|rescue|catch|else)\b(?![?!])|
(?<!\.)\b(do|\-\>)\b}x, Keyword
rule /\b(import|require|use|recur|quote|unquote|super|refer)\b(?![?!])/, Keyword::Namespace
rule /(?<!\.)\b(and|not|or|when|xor|in)\b/, Operator::Word
Expand Down

0 comments on commit 9c86bb0

Please sign in to comment.