diff options
author | Carlos Galdino <carloshsgaldino@gmail.com> | 2012-03-26 14:25:45 -0300 |
---|---|---|
committer | Carlos Galdino <carloshsgaldino@gmail.com> | 2012-03-26 14:25:45 -0300 |
commit | 005e638b762f7b1595c81b7c3e5d4e25b10c73f5 (patch) | |
tree | 585a4d034b30328dfba0863e74160776adfabb8f | |
parent | 1782f5652f85665caded63bed1c923578050d820 (diff) | |
download | pygments-005e638b762f7b1595c81b7c3e5d4e25b10c73f5.tar.gz |
Update to Elixir 0.9.0.dev
-rw-r--r-- | pygments/lexers/functional.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index 42fd05a7..a8da340f 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -1693,7 +1693,7 @@ class ElixirLexer(RegexLexer): r'defp|def|defprotocol|defimpl|defrecord|defmacro|defdelegate|' r'defexception|exit|raise|throw)\b(?![?!])|' r'(?<!\.)\b(do|\-\>)\b\s*', Keyword), - (r'\b(import|require|use|recur|quote|unquote|super)\b(?![?!])', + (r'\b(import|require|use|recur|quote|unquote|super|refer)\b(?![?!])', Keyword.Namespace), (r'(?<!\.)\b(and|not|or|when|xor|in)\b', Operator.Word), (r'%=|\*=|\*\*=|\+=|\-=|\^=|\|\|=|' @@ -1705,8 +1705,7 @@ class ElixirLexer(RegexLexer): r'\*\*?|=?~|<\-)|([a-zA-Z_]\w*([?!])?)(:)(?!:)', String.Symbol), (r':"', String.Symbol, 'interpoling_symbol'), (r'\b(nil|true|false)\b(?![?!])|\b[A-Z]\w*\b', Name.Constant), - (r'\b(__(FILE|LINE|MODULE|STOP_ITERATOR|EXCEPTION|OP|REF|FUNCTION|' - r'BLOCK|KVBLOCK)__)\b(?![?!])', Name.Builtin.Pseudo), + (r'\b(__(FILE|LINE|MODULE|LOCAL|MAIN|FUNCTION)__)\b(?![?!])', Name.Builtin.Pseudo), (r'[a-zA-Z_!][\w_]*[!\?]?', Name), (r'[(){};,/\|:\\\[\]]', Punctuation), (r'@[a-zA-Z_]\w*|&\d', Name.Variable), |