Commits

Georg Brandl  committed 84701e2

Closes #695: match namespace:function names in Erlang.

  • Participants
  • Parent commits 6f6a0f9

Comments (0)

Files changed (1)

File pygments/lexers/functional.py

             (r'"', String, 'string'),
             (r'<<', Name.Label),
             (r'>>', Name.Label),
-            (r'('+atom_re+')(:)', bygroups(Name.Namespace, Punctuation)),
-            (r'^('+atom_re+r')(\s*)(\()', bygroups(Name.Function, Text, Punctuation)),
+            ('(' + atom_re + ')(:)', bygroups(Name.Namespace, Punctuation)),
+            ('(?:^|(?<=:))(' + atom_re + r')(\s*)(\()',
+             bygroups(Name.Function, Text, Punctuation)),
             (r'[+-]?'+base_re+r'#[0-9a-zA-Z]+', Number.Integer),
             (r'[+-]?\d+', Number.Integer),
             (r'[+-]?\d+.\d+', Number.Float),