Files in Markup directory: MarkupTokenFactory.cs XmlCommentToken.cs XmlTextLiteralToken.cs |
/* CIL Browser (https://github.com/MSDN-WhiteKnight/CilBrowser)
* Copyright (c) 2023, MSDN.WhiteKnight
* License: BSD 3-Clause */
using System;
using System.Collections.Generic;
using System.Text;
using CilTools.Syntax.Tokens;
namespace CilBrowser.Core.SyntaxModel.Markup
{
public class XmlTextLiteralToken : SyntaxTokenDefinition
{
/// <inheritdoc/>
public override bool HasStart(TokenReader reader)
{
char c = reader.PeekChar();
return c == '"';
}
/// <inheritdoc/>
public override bool HasContinuation(string prevPart, TokenReader reader)
{
if (prevPart.Length <= 1) return true;
char c = prevPart[prevPart.Length - 1];
return c != '"';
}
}
}
View in source control |