theme-tools icon indicating copy to clipboard operation
theme-tools copied to clipboard

Broken Syntax Highlighting for Spaced Parameter Delimiter

Open PhoneDroid opened this issue 1 year ago • 0 comments

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.

PhoneDroid avatar Jan 04 '25 19:01 PhoneDroid