i = 0;
}
- if (token < Token.FIRST_TOKEN || token > Token.LAST_TOKEN)
- vb_text.Append ((char) token);
+ vb_text.Append ((char) token);
token = tokenizer.get_token ();
}
return;
}
-
+
if (Eat (Token.DOUBLEDASH)) {
tokenizer.ExpectAttrValue = old;
tokenizer.Verbatim = true;
varname = Eat ('=');
databinding = !varname && Eat ('#');
- if (Eat (Token.IDENTIFIER))
- inside_tags = tokenizer.Value;
- else
- inside_tags = String.Empty;
-
tokenizer.Verbatim = true;
- inside_tags += GetVerbatim (tokenizer.get_token (), "%>");
+ inside_tags = GetVerbatim (tokenizer.get_token (), "%>");
tokenizer.Verbatim = false;
id = inside_tags;
attributes = null;
{
class Token
{
- public const int FIRST_TOKEN = 0x0200000;
public const int EOF = 0x0200000;
public const int IDENTIFIER = 0x0200001;
public const int DIRECTIVE = 0x0200002;
public const int TEXT = 0x0200004;
public const int DOUBLEDASH = 0x0200005;
public const int CLOSING = 0x0200006;
- public const int LAST_TOKEN = 0x0200006;
}
class AspTokenizer
{
if (hasPutBack){
hasPutBack = false;
- position += Value.Length;
+ position += Value.Length;
return current_token;
}
if (current_token == '@' && Directive.IsDirective (sb.ToString ()))
return Token.DIRECTIVE;
-
+
return Token.IDENTIFIER;
}
* TemplateControlCompiler.cs: AddChildCall properly processes the
PartialCachingAttribute now.
-2008-06-17 Marek Habersack <mhabersack@novell.com>
-
- * AspTokenizer.cs: Added FIRST_TOKEN and LAST_TOKEN symbols to the
- internal Token class.
-
- * AspParser.cs: GetServerTag must use parsed identifiers when
- gathering verbatim code strings.
- GetVerbatim must not add to the text tokens which aren't
- characters. Fixes bug #400807
-
2008-06-11 Marek Habersack <mhabersack@novell.com>
* BuildManager.cs: if an error occurs while assigning the