On 18 June 2013 09:27, Albert-Jan Roskam <fo...@yahoo.com> wrote:
> from pygments.lexer import RegexLexer, bygroups from pygments.token import * 
> class IniLexer(RegexLexer): name = 'INI' aliases = ['ini', 'cfg'] filenames = 
> ['*.ini', '*.cfg'] tokens = { 'root': [ (r'\s+', Text), (r';.*?$', Comment), 
> (r'\[.*?\]$', Keyword), (r'(.*?)(\s*)(=)(\s*)(.*?)$', 
> bygroups(Name.Attribute, Text, Operator, Text, String)) ] }

I'm not sure how you sent this email but I'm assuming it wasn't
supposed to look like it does above. Did you compose/send this as
plain-text or html?


Oscar
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to