Stillat / vscode-antlers-language-server

Provides rich language features for Statamic's Antlers templating language, including code completions, syntax highlighting, and more.
https://antlers.dev
MIT License
36 stars 3 forks source link

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

Closed dannyuk1982 closed 1 month ago

dannyuk1982 commented 1 month ago

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?

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 1 month ago

Thanks for the report!

JohnathonKoster commented 1 month ago

Resolved in the following versions:

dannyuk1982 commented 1 month ago

Thanks for the super quick fix, amazing stuff!