Commits

Georg Brandl committed 50fc2f3

Fix name rule in Ocaml lexer (#627).

  • Participants
  • Parent commits ab39cfd

Comments (0)

Files changed (1)

pygments/lexers/functional.py

             (r'\.', Punctuation),
             (r'[A-Z][A-Za-z0-9_\']*(?=\s*\.)', Name.Namespace),
             (r'[A-Z][A-Za-z0-9_\']*', Name.Class, '#pop'),
-            (r'[a-z][a-z0-9_\']*', Name, '#pop'),
+            (r'[a-z_][A-Za-z0-9_\']*', Name, '#pop'),
         ],
     }