Partial with a hyphen and the word and in the source filename causes an error
Closed this issue · 3 comments
dannyuk1982 commented
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
JohnathonKoster commented
Thanks for the report!
JohnathonKoster commented
Resolved in the following versions:
- Antlers Toolbox for VS Code: 2.6.20
antlersls
: 1.3.13antlers-formatter
: 1.2.14prettier-plugin-antlers
: 2.0.5
dannyuk1982 commented
Thanks for the super quick fix, amazing stuff!