vscode-antlers-language-server icon indicating copy to clipboard operation
vscode-antlers-language-server copied to clipboard

Indentation Bug with inline antlers php 🐞

Open sjclark opened this issue 5 months ago • 0 comments

Describe the bug The following code inline results in infinite incrementing indentation on save

{{# Extract Youtube Video ID #}}
{{?
preg_match('/(?:youtube\.com\/.*v=|youtu\.be\/|youtube\.com\/embed\/)([^&\/\?\#]+)/', $video_link, $matches);
$videoId = $matches[1] ?? null;
?}}

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

  • Antlers Toolbox for VS Code

Versions and Other Plugins/Extensions Antlers Toolbox v2.6.21

To Reproduce Copy-paste code above into antlers.html file

Expected behavior No indentation

Other Notes: Adjusting to be a single line alleviates this: {{# Extract Youtube Video ID #}}{{? preg_match('/(?:youtube\.com\/.*v=|youtu\.be\/|youtube\.com\/embed\/)([^&\/\?\#]+)/', $video_link, $matches); $videoId = $matches[1] ?? null; ?}}

😄

sjclark avatar Sep 13 '24 04:09 sjclark