> I wrote a simple lexer to this and want to contribute. How can I do > this?
Hi. Please create a ticket on the bugtracker, http://dev.pocoo.org/projects/pygments/ The registration link is at the bottom, or you can report it as guest/guest. > The simple class is pasted here: http://paste.pocoo.org/show/142207/ I went ahead and gave it a quick review -- can you handle these for the patch you attach to the ticket? 1. Can you confirm the main project url? The github page links to one that 404's. http://www.caelumobjects.com/opensource/tubaina/ 2. ':' doesn't need escaping in regexes (lines 13, 27) 3. does tubaina afc have a registered mimetype? can you come up with an x-prefix one to use? 4. can you make the alternation in 27 more symmetric? i.e. [^XYZ]|[XYZ] 5. would ([\w\W]*?) or similar work for group 2 of lines 20, 23, 24, 25 (needed for matching newlines without re.DOTALL). I think something like this would be legal afc. [xml] <elem val="[]" /> [/xml] 6. Is there an escaping mechanism to allow you to write something that looks like the close of a block? Say I want to write bits of afc within a block: [xml] <elem name="start" val="[xml]" /> <elem name="end" val="[/xml]" /> [/xml] Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
