Commits

Alex Suraci committed d184441

Haskell lexer: allow single-character names in function lists

  • Participants
  • Parent commits 2f2a9d7

Comments (0)

Files changed (1)

pygments/lexers/functional.py

         'funclist': [
             (r'\s+', Text),
             (r'[A-Z][a-zA-Z0-9_]*', Keyword.Type),
-            (r'[_a-z][\w\']+', Name.Function),
+            (r'(_[\w\']+|[a-z][\w\']*)', Name.Function),
             (r'--.*$', Comment.Single),
             (r'{-', Comment.Multiline, 'comment'),
             (r',', Punctuation),