-
Notifications
You must be signed in to change notification settings - Fork 223
Modify parser to group html begin/end elements. #86
Conversation
Output(SpanKind.Markup); | ||
|
||
IDisposable tagBlock = null; | ||
// Do not want to start a new tag block if we're at the end of the file. |
There was a problem hiding this comment.
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
Addressed comments and updated PR |
PutBack(openAngle); // Put back '<' | ||
} | ||
|
||
if(seenEndScript) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space after if
|
Output(SpanKind.Markup); | ||
|
||
// Will be null if we were at end of file or special tag when initially created. | ||
if (tagBlockWrapper != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try/finally for IDisposable?
23dada9
to
2eb7591
Compare
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 |
There was a problem hiding this comment.
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
Will push this in once the test PR is complete. |
6992d12
to
6114d5d
Compare
Tag Helpers: Modify parser to create begin/end html tag elements that are ungrouped. #75
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