Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting breaks shorthand parameter syntax #100

Open
1 of 4 tasks
crumple-zone opened this issue Oct 18, 2024 · 0 comments
Open
1 of 4 tasks

Formatting breaks shorthand parameter syntax #100

crumple-zone opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@crumple-zone
Copy link

crumple-zone commented Oct 18, 2024

Describe the bug
While conducting a format of the file (using Option + Shift + F on Mac for example), if an antlers tag uses shorthand parameter syntax :

{{ partial:file/to/partial :$shorthandVariable }}

It gets changed to include a space between the : and $ - which does not work:

{{ partial:file/to/partial : $shorthandVariable }}

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

  • Antlers Toolbox for VS Code
  • Formatter CLI
  • Antlers Prettier Plugin
  • Antlers Syntax Highlighting (external systems - not VS Code)

Versions and Other Plugins/Extensions
Version 2.6.21
I am unaware of any other interfering extensions.

To Reproduce

  1. Create an antlers tag that uses shorthand parameter syntax
  2. Format the file

Expected behavior
No space introduced between shorthand parameters : and $ characters.

@JohnathonKoster JohnathonKoster added the bug Something isn't working label Oct 18, 2024
@JohnathonKoster JohnathonKoster self-assigned this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants