SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Task List in Python Projects

Last post 06-13-2009 1:05 PM by MattWard. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-08-2008 7:27 PM

    Task List in Python Projects

    Hi!

    Although I don't know, how to program in Python, I read the excellent post "IronPython Addin Internals" by Matt Ward, only to learn how to bind a new language to SharpDevelop. One thing that I did not understand, is about comments. I don't know how/where we define the comment character("#") for the language! Do I need this definition to use Task List feature? I tried to use Task List in a Python project, but I think it does not work! Of course, I'm not talking about LineComment property value="#" for Syntax Highlighting in .xshd file! Does SD support Task List features for Python projects?

    Thank you! 

     

     

  • 04-08-2008 10:57 PM In reply to

    Re: Task List in Python Projects

    I'm assuming you're asking why TODO, HACK, FIXME comments are not added to the Task List when they're defined in Python classes or code. This is not supported for Python projects.

    In order to be able to do it the parser needs to find and store these comments. There's code to do it for C# and VB.NET in the Lexer class (see specialCommentHash).

  • 06-13-2009 2:41 AM In reply to

    Re: Task List in Python Projects

     Will this ever be supported for IronPython?

  • 06-13-2009 1:05 PM In reply to

    Re: Task List in Python Projects

    At some point. At the moment it would require each python file to be parsed twice, once for the code folding/class view and then again to get the various TODO comments. It would be good if this could be done in one step in a similar way that SharpDevelop's C# and VB.NET parsers do. I do not see a way to do that without modifying the IronPython source code.

Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.