Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Modify parser to group html begin/end elements. #86

Merged
merged 1 commit into from
Aug 27, 2014

Conversation

NTaylorMullen
Copy link
Contributor

Since this impacted a large amount of the existing tests I've created a separate "test" PR. I felt that the existing tests did more than enough verification for this "feature" since it's at the core of the Razor parser, let me know if you have a different opinion.

Test PR: #87

Output(SpanKind.Markup);

IDisposable tagBlock = null;
// Do not want to start a new tag block if we're at the end of the file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: move this comment up one line since it helps to understand the null initialization

@NTaylorMullen
Copy link
Contributor Author

Addressed comments and updated PR

PutBack(openAngle); // Put back '<'
}

if(seenEndScript)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space after if

@dougbu
Copy link
Member

dougbu commented Aug 22, 2014

:shipit: after addressing my few recently-added issues

Output(SpanKind.Markup);

// Will be null if we were at end of file or special tag when initially created.
if (tagBlockWrapper != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try/finally for IDisposable?

@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_TagBlockParsing branch from 23dada9 to 2eb7591 Compare August 25, 2014 22:49
@NTaylorMullen
Copy link
Contributor Author

Addressed comments for all except for the one q: #86 (comment)

@@ -176,7 +176,7 @@ private HtmlSymbol Whitespace()
private HtmlSymbol Newline()
{
Debug.Assert(ParserHelpers.IsNewLine(CurrentCharacter));
// CSharp Spec §2.3.1
// CSharp Spec §2.3.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

surface "typo" comment I made on a commit.

- Added a "Tag" block type.
- Wrapped all begin/end elements in a "Tag" Markup block.

#75
@NTaylorMullen
Copy link
Contributor Author

Will push this in once the test PR is complete.

@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_TagBlockParsing branch from 6992d12 to 6114d5d Compare August 27, 2014 21:15
@NTaylorMullen NTaylorMullen merged commit 6114d5d into dev Aug 27, 2014
@NTaylorMullen NTaylorMullen deleted the TagHelpers_TagBlockParsing branch August 27, 2014 21:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants