Stillat/vscode-antlers-language-server

Partial with a hyphen and the word and in the source filename causes an error

Closed this issue · 3 comments

Describe the bug
If you have a partial containing a hyphen, i.e.

{{ partial:image-and-quote }}

This causes an error:

[ANTLR_001] Expecting operand, found T_AND near "-".

It's fine with this syntax:

{{ partial src="image-and-quote" }}

Or without the and

{{ partial:image-quote }}

Impacted Products
Which Antlers Toolbox products does this bug apply to?

  • Antlers Toolbox for VS Code

Versions and Other Plugins/Extensions
VS Code Version: 1.92.0

To Reproduce
As above

Expected behavior
No error as hyphens are valud

If submitting a formatting bug, please include the template contents below as well as an attachment
As above

Thanks for the report!

Resolved in the following versions:

  • Antlers Toolbox for VS Code: 2.6.20
  • antlersls: 1.3.13
  • antlers-formatter: 1.2.14
  • prettier-plugin-antlers: 2.0.5

Thanks for the super quick fix, amazing stuff!