1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #695 resolved

Erlang shell lexer does not match functions

Adam Lindberg
created an issue

There seems to be a bug in the Erlang shell lexer (erl) that misses highlighting function names.

{{{ somemodule:myfunction(...) ^^ ^^ nn n (should be nf) }}}

There are some lines in the Erlang language lexer (erlang) that seems to match this:

{{{ (r'('+atom_re+')(:)', bygroups(Name.Namespace, Punctuation)), (r'^('+atom_re+r')(\s*)(()', bygroups(Name.Function, Text, Punctuation)) }}} (Line 687-688)

However the wrong class is selected when running the Erlang shell lexer.

Comments (2)

  1. Log in to comment