Commit Graph
15 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 11c6d9c570 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
* AspTokenizer.cs: if there's a newline between the opening server tag
	and any other special character, treat the block as a code-render
	block.
	Bug #445889 fixed.


svn path=/trunk/mcs/; revision=119126
2008-11-18 04:14:41 +00:00
Marek Habersack 34a5f961ca Revert r106068 and reopen bug #400807. The revision broke more than it fixed and there exists a workaround for the bug metioned before
svn path=/trunk/mcs/; revision=106297
2008-06-20 10:23:44 +00:00
Marek Habersack 9221743e53 2008-06-17 Marek Habersack <[email protected]>
* 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

svn path=/trunk/mcs/; revision=106068
2008-06-17 21:31:32 +00:00
Juraj Skripsky 4940e7d5b0 2006-06-21 Juraj Skripsky <[email protected]>
* AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
	MS.NET handles nested quotes differently for server controls and
	for "normal" controls. Add a property "AlternatingQuotes" to the
	tokenizer and let the parser decide whether it is well-formed or not.

--This line, and thoae below, will be ignored--
M    System.Web.Compilation/AspTokenizer.cs
M    System.Web.Compilation/AspParser.cs
M    System.Web.Compilation/ChangeLog

svn path=/trunk/mcs/; revision=61894
2006-06-21 08:50:43 +00:00
Juraj Skripsky 1a1d81583a 2006-06-15 Juraj Skripsky <[email protected]>
* AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
	Don't allow an attribute value to contain the same quote characters
	as the ones used for delimiting the value itself. Add a token
	NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.


svn path=/trunk/mcs/; revision=61758
2006-06-15 15:08:41 +00:00
Gonzalo Paniagua Javier de0eac6582 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs:
	* AspTokenizer.cs: prevent quotes from being swallowed when we're
	inside a server tag and they are the next non-whitespace character.
	Fixes bug #63451.

svn path=/trunk/mcs/; revision=33364
2004-09-05 07:12:15 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier c2cf85f5fa 2004-05-06 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: indent a few lines.
	* AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
	attribute value. This way we can simulate reading 2 characters ahead
	(one in ungetc and the other in Peek) and work with values like
	text/javascript. Fixes bug #57302.

svn path=/trunk/mcs/; revision=26798
2004-05-06 00:39:36 +00:00
Jackson Harper d36e342d2d * AspTokenizer.cs: Collect discarded characters that might be used
in client side scripts. Patch by Liyu Liu.
	* AspParser.cs: Add discarded characters. Patch by Liyu Liu.

svn path=/trunk/mcs/; revision=22960
2004-02-10 22:39:49 +00:00
Gonzalo Paniagua Javier ae5fc1a2c6 2003-10-10 Gonzalo Paniagua Javier <[email protected]>
* AspTokenizer.cs: moved token numbers above unicode.

svn path=/trunk/mcs/; revision=18853
2003-10-10 08:53:57 +00:00
Gonzalo Paniagua Javier bb14252e09 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs:
	* AspTokenizer.cs: fixed bugs #43206 and #43371.

svn path=/trunk/mcs/; revision=14781
2003-05-21 23:27:12 +00:00
Gonzalo Paniagua Javier e80814a23c 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
	instead of their names.

	* AspElements.cs: removed. No longer needed.

	* AspGenerator.cs: this file is now in charge of interfacing between
	the parser and the compiler. It manages the creation of the
	ControlBuilder tree and the compilation of the CodeDOM tree.

	* AspParser.cs: tag handling is simpler now.  Instead of a whole bunch
	of different Types, tags are just and id and a set of attributes.
	Implement ILocation interface.

	* AspTokenizer.cs: added a few methods to help the parser implementing
	ILocation.

	* BaseCompiler.cs: handles the portions of the CodeDOM tree that are
	common to appliaction, page and user control, including the actual
	compilation and error handling.

	* CSCompiler.cs: compiles C# files using CodeDOM interfaces.

	* CachingCompiler.cs: simplified to use the new interfaces.

	* CompilationException.cs: it's now using CompilationResult to report
	errors.

	* CompilationResult.cs: Removed file.

	* Directive.cs: to check for the validity of a directive.

	* GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
	in BaseCompiler.

	* ILocation.cs: interface used to now the exact place where a parse
	error happens.

	* PageCompiler.cs: generates a couple of methods that are only used in
	pages.

	* ParseException.cs: use the ILocation interface.

	* TagAttributes.cs: handles the attributes of the tags parsed.

	* TagType.cs: an enum for the different kinds of tags.

	* TemplateControlCompiler.cs: this is the one that does most of the
	conversion from teh ControlBuilder tree into a CodeDOM tree.

	* UserControlCompiler.cs: simplified as most of the work is done in
	its base classes.

	* WebServiceCompiler.cs: dummy.

svn path=/trunk/mcs/; revision=14140
2003-04-30 04:56:01 +00:00
Gonzalo Paniagua Javier 581122d879 2003-03-28 Gonzalo Paniagua Javier <[email protected]>
* AspTokenizer.cs: allow quotes inside server tags that are part of
	attribute values.

	* CachingCompiler.cs: no more 'FileNotFound' exceptions when the
	compilation fails.

svn path=/trunk/mcs/; revision=12877
2003-03-27 23:14:36 +00:00
Gonzalo Paniagua Javier 3444afed80 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspParser.cs: the parser fires events when it
	parses an element.

	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs:
	* System.Web.Compilation/AspElements.cs: modified to use the new parser
	interface.

	* System.Web.Compilation/AspGenerator.cs: modified to use the new
	parser. Merge multiple text strings into one single LiteralControl.

	* System.Web.Compilation/AspTokenizer.cs: added Line and Column properties.

svn path=/trunk/mcs/; revision=11146
2003-02-03 02:25:00 +00:00
Gonzalo Paniagua Javier 922dfc4b3d 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspElements.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/AspTokenizer.cs:
	* System.Web.Compilation/ChangeLog:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateFactory.cs:
	* System.Web.UI/ApplicationFileParser.cs:
	* System.Web.UI/BaseParser.cs:
	* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControl.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI/TemplateParser.cs: first steps to move xsp into
	System.Web.

svn path=/trunk/mcs/; revision=6668
2002-08-16 05:36:06 +00:00