|
|
|
@ -312,7 +312,10 @@ namespace ICSharpCode.NRefactory.Parser.VB
@@ -312,7 +312,10 @@ namespace ICSharpCode.NRefactory.Parser.VB
|
|
|
|
|
if (ch == '%' && ReaderPeek() == '>') { |
|
|
|
|
int x = Col - 1; |
|
|
|
|
int y = Line; |
|
|
|
|
inXmlMode = true; |
|
|
|
|
// in invalid code xmlModeStack might happen to be empty.
|
|
|
|
|
// do not set lexer to XML mode, if there was no valid XML before the inline VB code.
|
|
|
|
|
// fixes http://community.sharpdevelop.net/forums/t/15920.aspx
|
|
|
|
|
inXmlMode = xmlModeStack.Any(); |
|
|
|
|
ReaderRead(); |
|
|
|
|
return new Token(Tokens.XmlEndInlineVB, new Location(x, y), new Location(Col, Line)); |
|
|
|
|
} |
|
|
|
|