Ajay Bhargav Baaskaran
6270c1f47e
Merge branch 'rel/vs15.7' into dev
2018-04-05 16:28:17 -07:00
Ryan Nowak
4cd24a2b08
Add experimental flag to un-special-case data-
...
This change allows blazor to opt into treating data- attributes the same
way as normal attributes in the parser.
2018-04-05 15:27:04 -07:00
N. Taylor Mullen
c874f84c3d
Revert "Revert "Make Razor HTML Comments aware ( #2178 )""
...
This reverts commit 1f3f4b79da .
2018-03-20 15:23:53 -07:00
N. Taylor Mullen
1f3f4b79da
Revert "Make Razor HTML Comments aware ( #2178 )"
...
This reverts commit b58986414e .
2018-03-20 11:54:09 -07:00
Ajay Bhargav Baaskaran
c934bd08ac
Merge branch 'rel/vs15.7' into release/2.1
2018-03-19 19:14:51 -07:00
Ajay Bhargav Baaskaran
9dc7c65205
Fix: Missing Html intellisense after directives
2018-03-19 17:16:11 -07:00
Artak
b58986414e
Make Razor HTML Comments aware ( #2178 )
...
* Merging changes (from dev branch; doing manually to squash them really)of HTML Parser to be aware of HTML Comments so TagHelpers don't complain about comments as content.
2018-03-19 10:18:29 -07:00
Artak Mkrtchyan
ae94c3c452
- Updated naming for methods to be more intuitive.
...
- Added extra tests for clarity
- Added extra comments to clarify complex areas
2018-03-09 18:18:16 -08:00
Artak Mkrtchyan
3e22c16930
Added extra tests for non-covered scenarios:
...
- For older version of Razor the HTML comments will be complained about by TahHelperRewriter
- RazorParserFeatureFlags tests now ensure that AllowHtmlCommentsInTagHelpers is true in 2.1 version and false in older versions
- Added extra test for IsHtmlCommentAhead to make sure Razor code transition is allowed in comment tag
- Moved the unallowed html comment ending to a static array.
2018-03-09 17:18:57 -08:00
Artak Mkrtchyan
e8eb3b7b1c
Added extra test to cover extra dash in closing comment
2018-03-09 11:52:23 -08:00
Artak Mkrtchyan
6c8c6a777c
- Clarified the code where the comment content ending is checked to be allowed or not.
...
- Added more unit tests
2018-03-09 09:16:17 -08:00
Artak Mkrtchyan
faccd90aa5
Added unit-tests to validate new methods
2018-03-08 16:36:56 -08:00
Artak Mkrtchyan
32e2c533c7
Naming improvements and test code cleanup
2018-03-08 13:37:05 -08:00
Artak Mkrtchyan
632c9dead7
Added tests for the LookaheadUntil method
2018-03-08 13:37:05 -08:00
Artak Mkrtchyan
33814fb634
Updated the Comments detection to comply with HTML 5 specification
2018-03-08 13:37:04 -08:00
Artak Mkrtchyan
6885fb15d0
Updated the test TagHelperBlockRewriteTest class
2018-03-08 13:37:04 -08:00
Artak Mkrtchyan
6f515bb763
Fixed all the tests to reflect HtmlComment block type support
2018-03-08 13:37:03 -08:00
Artak Mkrtchyan
e1fbea24f1
HtmlMarkupParser is now aware of HtmlComment blocks. Majority (if not all, will confirm soon) tests have been updated to account for HtmlComment blocks.
2018-03-08 13:37:03 -08:00
Artak Mkrtchyan
ad8485addd
Added new BlockType - HtmlComment
...
Updated the HtmlMarkupParser to understand the HtmlCOmments, and treat those as blocks.
2018-03-08 13:37:03 -08:00
Artak Mkrtchyan
679acdc5d4
Ignoring razor comments during validation
2018-03-08 13:37:02 -08:00
Artak Mkrtchyan
41b7d90ea8
Ignoring markup comments during validation
2018-03-08 13:37:01 -08:00
Artak Mkrtchyan
e6f68eb244
Added a unit test to repro the issue
2018-03-08 13:37:01 -08:00
Nate McMaster
13824c418e
Catch 15.7 up with dev
...
This change integrates most of the non-breaking work that we did in 2.1
including the updates to make Razor less coupled to MVC.
2018-02-19 10:46:16 -08:00
N. Taylor Mullen
968e033e4b
Make Block and Span cache Length.
...
- Part of caching length required the `Span`'s `ReplaceWith` method to propagate its changes to its parent so that it can propogate the change to invalidate all parent length caches.
- Added Span and Block tests to validate the interaction of caching.
#1927
2018-01-16 21:14:46 -08:00
N. Taylor Mullen
92111ea515
Make Block and Span cache Length.
...
- Part of caching length required the `Span`'s `ReplaceWith` method to propagate its changes to its parent so that it can propogate the change to invalidate all parent length caches.
- Added Span and Block tests to validate the interaction of caching.
#1927
2018-01-16 20:53:35 -08:00
Ajay Bhargav Baaskaran
34fe4099c2
Removed LegacyRazorDiagnostic and RazorError
2017-12-27 11:43:19 -08:00
Ajay Bhargav Baaskaran
439c742dec
Removed LegacyResources.resx
2017-12-22 15:59:35 -08:00
Ajay Bhargav Baaskaran
80af17fc4b
Moved TagHelperParseTreeRewriter out of LegacyRazorDiagnostic
2017-12-22 12:33:28 -08:00
N. Taylor Mullen
63aceea121
Change TagHelperBlockRewriter's error usage to use RazorDiagnosticFactory.
...
- Changed `DefaultRazorDiagnostic` to expose a little more information for tests. This info is only available when casted to the `DefaultRazorDiagnostic` type and only available internally.
- Changed parameter order of a `DefaultTagHelperTargetExtension` diagnostic.
- Updated baselines of files in `Razor.Language.Test`.
- Added a new convenience constructor on `SourceSpan`. The ctor is equivalent to calling the class with a SourceLocation.
#1827
2017-12-22 09:38:31 -08:00
Ajay Bhargav Baaskaran
d419566534
Revert "Revert "Include LineIndex and CharacterIndex when comparing SourceLocation""
...
This reverts commit bace4a3818 .
2017-12-20 15:27:15 -08:00
Ajay Bhargav Baaskaran
b3be0ebb91
Moved TokenizerBackerParser out of LegacyRazorDiagnostic
2017-12-20 11:21:05 -08:00
Ajay Bhargav Baaskaran
7d4fb5dcab
Moved HtmlMarkupParser out of LegacyRazorDiagnostic
2017-12-19 18:07:23 -08:00
Ajay Bhargav Baaskaran
bace4a3818
Revert "Include LineIndex and CharacterIndex when comparing SourceLocation"
...
This reverts commit 0e20ea5178 .
2017-12-19 18:04:18 -08:00
Ajay Bhargav Baaskaran
0e20ea5178
Include LineIndex and CharacterIndex when comparing SourceLocation
2017-12-19 15:59:45 -08:00
Ajay Bhargav Baaskaran
808f539297
Moved CSharpCodeParser out of LegacyRazorDiagnostic
2017-12-19 15:59:37 -08:00
Ajay Bhargav Baaskaran
18ce7f07ac
Moved CSharpTokenizer errors out of legacy diagnostic
2017-12-18 11:51:08 -08:00
N. Taylor Mullen
463e11b739
Make SyntaxTree mutations not leak.
...
- Prior to this when the partial parser would successfully parse a change we'd mutate the returned syntax tree so any data inquired about the tree would then be wrong. We now isolate mutations to copied versions of the syntax tree.
- Added copy tests to ensure that we were appropriately copying all the various syntax node types.
#1793
2017-12-18 11:50:07 -08:00
Ajay Bhargav Baaskaran
8fcb046345
Moved the test infrastructure to depend on RazorDiagnostic instead of RazorError
2017-12-15 17:22:00 -08:00
Ajay Bhargav Baaskaran
085838e83a
Make ErrorSink and Tokenizer depend on RazorDiagnostic instead of RazorError
2017-12-14 18:32:58 -08:00
Ajay Bhargav Baaskaran
6bbd063e26
Use DefaultRazorDiagnostic in DefaultDirectiveSyntaxTreePass
2017-12-14 16:35:13 -08:00
Ajay Bhargav Baaskaran
f4e9ddad22
Link syntax tree Span nodes
2017-10-10 13:07:27 -07:00
Ajay Bhargav Baaskaran
bd8e9ecc31
Added RazorParserFeatureFlags and added support for minimized bool tag
...
helper bound attributes
- Fixes #1678 , #431
2017-09-29 16:02:09 -07:00
Ajay Bhargav Baaskaran
aa445ee9b4
Add error for using single quotes in add/remove taghelper directive
2017-09-07 11:29:33 -07:00
Ajay Bhargav Baaskaran
4b68a48f1d
Fix: Broken intellisense for extensible directives
2017-08-29 14:47:52 -07:00
Ajay Bhargav Baaskaran
b12683a35d
Mark trailing whitespace after type name in directives as markup
2017-08-29 12:48:44 -07:00
Ajay Bhargav Baaskaran
f3d121cacf
Mark whitespace between tag helper directive and its value as Markup
2017-08-28 21:42:37 -07:00
Ajay Bhargav Baaskaran
fa6fde2b20
Moved TagHelper directive validation and parsing from TagHelperBinder to
...
CSharpCodeParser
2017-08-23 17:14:41 -07:00
Nate McMaster
0c3fff3137
Upgrade to xunit 2.3.0-beta4 ( #1640 )
...
Includes a few changes required by xunit.analyzers, such as removing unused theory parameters.
2017-08-23 12:56:31 -07:00
Ajay Bhargav Baaskaran
45732a5dd3
Fix: Nested tag helpers do not work when tag helper prefix is set
2017-08-17 15:26:10 -07:00
Ajay Bhargav Baaskaran
8d2a9e5929
Support tuples for type directive tokens
2017-08-14 12:43:41 -07:00