~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring.IntroduceConstant/IntroduceConstantRefactoring.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-01-07 19:06:58 UTC
  • mto: (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20100107190658-z9z95lgk4kwfes7p
ImportĀ upstreamĀ versionĀ 2.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
                                start = end = data.Caret.Offset;
101
101
                        }
102
102
                        while (start > 0) {
103
 
                                if (data.Document.GetCharAt (start) == quote)
 
103
                                if (data.Document.GetCharAt (start) == quote && (start == 0 || data.Document.GetCharAt (start - 1) != '\\'))
104
104
                                        break;
105
105
                                start--;
106
106
                        }
107
107
                        while (end < data.Document.Length) {
108
 
                                if (data.Document.GetCharAt (end) == quote)
 
108
                                if (data.Document.GetCharAt (end) == quote && (end == 0 || data.Document.GetCharAt (end - 1) != '\\'))
109
109
                                        break;
110
110
                                end++;
111
111
                        }