Exemple #1
0
 /// <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");
 }
Exemple #2
0
 /// <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));
 }
Exemple #3
0
 /// <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");
 }
Exemple #4
0
 /// <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())
 {
     //
 }
Exemple #5
0
 /// <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));
 }
Exemple #6
0
 /// <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())
 {
     //
 }
Exemple #7
0
 /// <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");
 }
Exemple #8
0
 /// <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);
Exemple #9
0
 /// <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())
 {
     //
 }
Exemple #10
0
 /// <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");
 }
Exemple #11
0
 /// <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])
 {
     //
 }