Go to file
N. Taylor Mullen 41fad8a33a Don't smart indent code inside of Razor block constructs.
- Prior to this change we weren't strict enough with where our smart indenter ran. We made the assumption that every code block could be smart indented and then Roslyn would "do the right thing". However, in nested code block scenarios we found that Roslyn and us would both indent resulting in extra newlines. These changes make the criteria for applying smart indentation a little stricter.
- Updated directive code block parsing to add a C# marker symbol in cases of an empty code block directive.
- Added unit tests to verify new smart indenter behavior.
- Updated existing tests to expect new syntax tree marker symbol for empty directive bits.
- Regenerated baselines.

#2410
2018-06-18 20:38:01 -07:00
benchmarks/Microsoft.AspNetCore.Razor.Performance
build Update dependencies.props 2018-06-07 19:44:53 +00:00
shared/Microsoft.AspNetCore.Razor.TagHelpers.Testing.Sources
src Don't smart indent code inside of Razor block constructs. 2018-06-18 20:38:01 -07:00
test Don't smart indent code inside of Razor block constructs. 2018-06-18 20:38:01 -07:00
tooling
.editorconfig
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
Directory.Build.props Add certificate names for code signing 2018-06-05 22:34:33 -07:00
Directory.Build.targets
LICENSE.txt
NuGet.config
NuGetPackageVerifier.json
README.md
Razor.sln
build.cmd
build.sh
korebuild-lock.txt Update dependencies.props 2018-06-07 19:44:53 +00:00
korebuild.json
run.cmd
run.ps1 Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:16:52 -07:00
run.sh Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:16:52 -07:00
version.props

README.md

Razor

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.

Building from source

To run a complete build on command line only, execute build.cmd or build.sh without arguments. See developer documentation for more details.