JuliaEditorSupport / julia-vim

Vim support for Julia.
http://julialang.org/
Other
753 stars 94 forks source link

Issue with 'end' keyword of singe line blocks with custom macro call #167

Closed alkorang closed 5 years ago

alkorang commented 5 years ago

Here is an exmple which is a valid Julia program.


function myfunc(args...) end
macro mymacro(args...) end
macro printf(args...) end

for i in 1:5 myfunc(i) end
for i in 1:5 @mymacro(i) end
for i in 1:5 @printf(i) end

begin
    x = 0
    while x < 5 myfunc(x += 1) end
    x = 0
    while x < 5 @mymacro(x += 1) end
    x = 0
    while x < 5 @printf(x += 1) end
end

begin x = 0; myfunc(x += 1) end
begin x = 0; @mymacro(x += 1) end
begin x = 0; @printf(x += 1) end

With Vim 7.4 on CentOS: image

With Vim 8.1 included in Git Bash on Windows: image