Skip to content

Syntax highlighting glitch #105

@mcandre

Description

@mcandre

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions