vscode-antlers-language-server
vscode-antlers-language-server copied to clipboard
Indentation Bug with inline antlers php 🐞
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; ?}}
😄