theme-tools
theme-tools copied to clipboard
Broken Syntax Highlighting for Spaced Parameter Delimiter
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:
Doesn't work:
{%- render 'Snipper'
, key : value
-%}
Screenshot of the above code for future reference:
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.