jdhardy / IronPython.VisualStudio

IronPython extensions for Visual Studio 2010. This project has been superseded by IronPython Tools for Visual Studio (http://bit.ly/aWw3fL).

follow

It doesn't look like the editor can handle multiline python syntax. This includes multiline strings, explicit and implicit line continuation. Examples include:

def multi():
        """ This is a multiline doc string
        line 2
        line 3
        """

        a = """first line
        second line's ticks '
        final line"""

        a = 1 + 2 + 3 + \
        4 + 5

        a = (1 + 2 + 3 +
                4 + 5)
Status: open Responsible: nobody Type: bug
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

#1

Jeff Hardy / jdhardy

→ Changed status from new to open.

This issue is because VS2010 likes to handle formatting one line at a time, which makes it hard to handle multi-line constructs. Worse, VS might decide it wants to reformat starting in the middle of the file (if it knows there are no changes above it). I don't know if the built-in TrackingSpans are capable of handling this.

It's not impossible; I just need sit down and think through all the cases, but haven't had the time.

As always, patches are welcome. :)


#2

Tristan Zajonc / tristanz

Sadly I'm not an VS or .NET expert, but if I do figure something out I will submit it.


Add comment / attachment

Show/hide preview

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?