Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting glitch #105

Open
mcandre opened this issue Aug 14, 2019 · 0 comments
Open

Syntax highlighting glitch #105

mcandre opened this issue Aug 14, 2019 · 0 comments

Comments

@mcandre
Copy link

mcandre commented Aug 14, 2019

Long lines can sometimes confuse the parser:

{{#if active}}<span>{{else}}<a {{#if id}}id="{{id}}"{{/if}} href="{{{url}}}">{{/if}}{{#if img}}<img class="desaturate" id="{{img.id}}" src="{{img.src}}" alt="{{img.alt}}" width="{{img.width}}" height="{{img.height}}" />{{/if}}{{name}}{{#if active}}</span>{{else}}</a>{{/if}}

The img closing bracket /> is where highlighting messes up and mistakenly highlights that and the rest of the line as HTML attribute color.

Whereas GitHub's own syntax highlighting correctly highlights the whole line!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant