Go to file
N. Taylor Mullen 132c8c7a7e Implement consistent error story for directives.
- Added error case that enforces whitespace in between directive tokens.
- Upon encountering invalid directive tokens/states we bail out of parsing and log an appropriate error.
- Raised directive parse errors to the IR layer. This is slightly hacky given the parsers limitations; we swap out the error sink temporarily to capture all directive parser errors and then shove the errors collected onto the directives chunk generator.
- Added a `MalformedDiretiveIRNode` and corresponding pass to represent directives that are in an invalid state. Chose to not take the path of using the default `DirectiveIRNode.Diagnostics` member to enable users who are extending directives to only ever have to work with "valid" directives. If they want to work with malformed directives they can search the IR document for their malformed counterpart and handle it separately.
- Updated existing test expectations
- Removed some existing tests that were no longer valid (we don't call into user code if a directive is malformed).

#1173
2017-06-19 21:14:06 -07:00
build Revert "Revert "Update Roslyn Version to support C# 7.1"" 2017-06-14 12:38:22 -07:00
shared/Microsoft.AspNetCore.Razor.TagHelpers.Testing.Sources Remove old razor 2017-03-17 14:58:13 -07:00
src Implement consistent error story for directives. 2017-06-19 21:14:06 -07:00
test Implement consistent error story for directives. 2017-06-19 21:14:06 -07:00
tooling/Microsoft.VisualStudio.RazorExtension Add DisplayName and Description for directives 2017-06-07 13:37:34 -07:00
.editorconfig Add .editorconfig 2017-02-24 09:54:56 -08:00
.gitattributes
.gitignore Use project.json for the VSIX project 2017-06-03 17:27:35 -07:00
.travis.yml Switch off Travis container-based infrastructure 2017-03-21 13:39:05 -07:00
CONTRIBUTING.md
LICENSE.txt
NuGet.config Removed Roslyn feed as we are now mirroring these packages 2017-06-12 08:16:11 -07:00
NuGetPackageVerifier.json Third party rule name changed 2017-04-11 10:04:29 -07:00
README.md ASP.NET 5 -> ASP.NET Core 2016-03-14 21:37:12 -07:00
Razor.sln Compile CodeGeneration tests 2017-05-16 16:26:47 -07:00
appveyor.yml Update appveyor and travis settings 2017-03-14 13:41:17 -07:00
build.cmd
build.ps1 Updating build scripts to point to 2.0.0-preview2 KoreBuild 2017-05-31 19:53:31 -07:00
build.sh Updating build scripts to point to 2.0.0-preview2 KoreBuild 2017-05-31 19:53:31 -07:00
version.props Updating versions to preview3 2017-06-01 10:47:38 -07:00

README.md

Razor

AppVeyor: AppVeyor

Travis: Travis

The Razor syntax provides a fast, terse, clean and lightweight way to combine server code with HTML to create dynamic web content. This repo contains the parser and the C# code generator for the Razor syntax.

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.