/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.StringBlockScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> /// <param name="stringNode">A <see cref="Wilco.SyntaxHighlighting.StringNode"/> object.</param> public StringBlockScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult, StringNode stringNode) : base(tokenizer, scannerResult) { this.stringNode = stringNode; this.lastToken = null; this.SetID("StringBlockScanner"); }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> /// <returns>A new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class.</returns> public override IScanner Create(TokenizerBase tokenizer, OccurrenceCollection scannerResult) { return(new StringBlockScanner(tokenizer, scannerResult)); }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.CommentBlockScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> /// <param name="commentBlockNode">A <see cref="Wilco.SyntaxHighlighting.CommentBlockNode"/> object.</param> public CommentBlockScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult, CommentBlockNode commentBlockNode) : base(tokenizer, scannerResult) { this.commentBlockNode = commentBlockNode; this.SetID("CommentBlockScanner"); }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.StringBlockScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> public StringBlockScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult) : this(tokenizer, scannerResult, new StringNode()) { // }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> /// <returns>A new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class.</returns> public override IScanner Create(TokenizerBase tokenizer, OccurrenceCollection scannerResult) { return(new CommentLineScanner(tokenizer, scannerResult)); }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.CommentBlockScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> public CommentBlockScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult) : this(tokenizer, scannerResult, new CommentBlockNode()) { // }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.StringLineScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> /// <param name="stringNode">A <see cref="Wilco.SyntaxHighlighting.StringNode"/> object.</param> public StringLineScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult, StringNode stringNode) : base(tokenizer, scannerResult) { this.ScannerResult = scannerResult; this.stringNode = stringNode; this.SetID("StringLineScanner"); }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> /// <returns>A new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class.</returns> public abstract IScanner Create(TokenizerBase tokenizer, OccurrenceCollection scannerResult);
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.ASPXScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> public ASPXScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult) : this(tokenizer, scannerResult, new ASPXNode()) { // }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.WordScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> /// <param name="wordNodes">An array of <see cref="Wilco.SyntaxHighlighting.WordNode"/> objects.</param> public WordScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult, WordNode[] wordNodes) : base(tokenizer, scannerResult) { this.wordNodes = wordNodes; this.SetID("WordScanner"); }
/// <summary> /// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.WordScanner"/> class. /// </summary> /// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param> /// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param> public WordScanner(TokenizerBase tokenizer, OccurrenceCollection scannerResult) : this(tokenizer, scannerResult, new WordNode[0]) { // }