mblode / vscode-twig-language-2

VS Code extension with snippets, syntax highlighting, hover, and formatting for Twig.
https://marketplace.visualstudio.com/items?itemName=mblode.twig-language-2
MIT License
59 stars 27 forks source link

Twig default filter highlighting #19

Open ben-rogerson opened 6 years ago

ben-rogerson commented 6 years ago

When the default filter has no parenthesis (defaults to null) then the syntax highlighting doesn't work.

# Nice syntax highlighting
blah|default()
# No syntax highlighting
blah|default
mblode commented 5 years ago

Hey @ben-rogerson, I have just pushed an update to Twig Language 2 with a brand new formatter using Prettydiff 3 which brings about some major bug fixes. I'm not sure how to recreate this bug as seems to working correctly on my system with blah being coloured, however, I will look into it further for you. Sorry about the snail's pace development speeds but hopefully these updates have fixed some of your other problems.

ben-rogerson commented 5 years ago

Thanks for the reply @mblode, I'll be trying out the new version shortly 👍

github-actions[bot] commented 5 years ago

Stale issue message

ben-rogerson commented 5 years ago

Hey Matt, I updated and I don't think this was changed. Version 0.8.10

You can see here that the same highlighting issue is present:

{{ blah|default }}
{{ blah|default() }}