Commits

Tim Hatch  committed 40ac92a

Allow ellipsis in method parameters.

Fixes #789

  • Participants
  • Parent commits f4cda0f

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

         ],
         'method': [
             include('whitespace'),
+            # TODO unsure if ellipses are allowed elsewhere, see discussion in
+            # Issue 789
+            (r',', Punctuation),
+            (r'\.\.\.', Punctuation),
             (r'(\(.*?\))([a-zA-Z$_][a-zA-Z0-9$_]*)', bygroups(using(this),
                                                               Name.Variable)),
             (r'[a-zA-Z$_][a-zA-Z0-9$_]*:', Name.Function),