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

crystal tool format doesn't work within nested macros #14586

Open
yanecc opened this issue May 12, 2024 · 0 comments
Open

crystal tool format doesn't work within nested macros #14586

yanecc opened this issue May 12, 2024 · 0 comments

Comments

@yanecc
Copy link

yanecc commented May 12, 2024

Bug Report

crystal tool format doesn't work within nested macros

{% if flag?(:windows) %}
  {% if compare_versions(Crystal::VERSION, "1.5.0") >= 0 %}
     File.delete?  path
  {% else %}
    File.delete path if  File.exists? path
  {% end %}
{% end %}
Crystal 1.12.1 [4cea101] (2024-04-11)

LLVM: 18.1.1
Default target: x86_64-pc-windows-msvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants