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

symbol range for function capture is incorrect #298

Closed
mhanberg opened this issue Oct 22, 2023 · 1 comment
Closed

symbol range for function capture is incorrect #298

mhanberg opened this issue Oct 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mhanberg
Copy link
Collaborator

mhanberg commented Oct 22, 2023

Description

The following code snippet has an incorrect range

temple do
  c &root/1 do
#   ^^^^
    div class: "grid grid-cols-1 lg:grid-cols-3 gap-4" do
      c &card/1 do
        h2 class: "text-xl dark:text-white mb-2" do
          "System Information"
        end
      end
    end
  end
end

The correct range is

temple do
  c &root/1 do
#   ^^^^^^^
    div class: "grid grid-cols-1 lg:grid-cols-3 gap-4" do
      c &card/1 do
        h2 class: "text-xl dark:text-white mb-2" do
          "System Information"
        end
      end
    end
  end
end
@mhanberg mhanberg added the bug Something isn't working label Oct 22, 2023
@mhanberg
Copy link
Collaborator Author

This seems to have been fixed on more recent version of Elixir, but the range is just the name, not the & or arity

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

1 participant