Skip to content

Broken Syntax Highlighting for Spaced Parameter Delimiter #684

Open
@PhoneDroid

Description

Describe the bug
Adding spacing between the parameter delimiter and
the parameter name breaks syntax highlighting.

Source

Works:

{%- render 'Snipper'
    , key: value
-%}

Screenshot of the above code for future reference:
Image

Doesn't work:

{%- render 'Snipper'
    , key : value
-%}

Screenshot of the above code for future reference:
Image

Expected behaviour
Syntax highlighting works no matter the
amount of space added between a parameter
delimiter and a parameter name.

Actual behaviour
It doesn't highlight the name , delimiter not the value.

Debugging information

  • Theme Check Version 3.4.0

Additional context
Is also broken for GitHubs syntax highlighting.

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSEV-4Low Severity

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions