Commits

Anonymous committed 905baf6

[svn] Fix C# class / namespace names.

  • Participants
  • Parent commits cf3b63a
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/dotnet.py

                 (cs_ident, Name),
             ],
             'class': [
-                (r'[a-zA-Z_][a-zA-Z0-9_]*', Name.Class, '#pop')
+                (cs_ident, Name.Class, '#pop')
             ],
             'namespace': [
                 (r'(?=\()', Text, '#pop'), # using (resource)
-                (r'[a-zA-Z_][a-zA-Z0-9_.]*', Name.Namespace, '#pop')
+                ('(' + cs_ident + r'|\.)+', Name.Namespace, '#pop')
             ]
         }