Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine
MIT License
1.24k stars 214 forks source link

Only parse comments as layout when they are not escaped #438

Closed heemskerkerik closed 3 years ago

heemskerkerik commented 3 years ago

Fixes #437

This lets CommentParser.AccumulateComment return whether the comment is an ‘escaped’ comment (i.e. starting with --), and only parses a layout token when it is not escaped.

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication