Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: Full reparse when typing C# code before markup [316]

$
0
0
When typing a new C# statement inside a Razor block immediately before embedded markup, the parser immediately considers all text from the start of the new statement to the nearest ";" as code. This means embedded markup in this range will be reclassified as code, causing incorrect colorization

This also means a full reparse occurs, which can slow down typing performance.

Identified by WebMatrix Editor team. Created from WebMatrix Bug# 37123


Example:

```
div gets parsed as C#:
@{
int x <div></div>
}
```
div gets parsed as markup:

```
@{
int x; <div></div>
}

```

This might make sense for runtime, but when typing the div text will flash, and typing performance is affected.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>