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

beginning/end-of-defun don't parse some definitions #158

Open
untoreh opened this issue Jul 27, 2021 · 0 comments
Open

beginning/end-of-defun don't parse some definitions #158

untoreh opened this issue Jul 27, 2021 · 0 comments

Comments

@untoreh
Copy link

untoreh commented Jul 27, 2021

examples where beginning-of-defun and/or end-of-defun don't work

# a begin/end block
fn(p) = begin
    0
    1
    2
end

# try/catch
fn(x) = try
    0
    1
    2
catch e
    0
finally
    1
end

# function assignments
myfun = function fn(p)
    0
    1
end

# definitions with macros 
@inbounds function fn(p) 
    0
    1
    2
end
@inbounds fn(p) = begin
    0
    1
    2
end
@inbounds fn(x) = try
    0
    1
    2
catch e
    0
finally
    1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant