Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit a6a9bfe

Browse files
author
tbulle
committed
Fixed so that MarkupExtensionParser doesent ignore escaped backslash
1 parent 809e589 commit a6a9bfe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/MarkupExtensionParser.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ void MembernameOrString()
9797
char quote = text[pos++];
9898
CheckNotEOF();
9999
while (!(text[pos] == quote && text[pos-1] != '\\')) {
100+
char prev = text[pos-1];
100101
char c = text[pos++];
101-
if (c != '\\')
102+
bool isEscapedBackslash = string.Concat(prev,c)=="\\\\";
103+
if (c != '\\' || isEscapedBackslash)
102104
b.Append(c);
103105
CheckNotEOF();
104106
}

0 commit comments

Comments
 (0)