gcv / julia-snail

An Emacs development environment for Julia
GNU General Public License v3.0
236 stars 23 forks source link

export statements prevent julia-snail-parser-includes from detecting some included files #20

Closed orialb closed 4 years ago

orialb commented 4 years ago

Given a module:

module MyModule

export myfunc

include("file1.jl")
include("file2.jl")
end

eval'ing (julia-snail-parser-includes (get-buffer (current-buffer))) shows that file1.jl is not recognized as an included file, while file2.jl is parsed as an included file.

If I remove the export statement or comment it out it seems that julia-snail-parser-includes, recognizes all the included files correctly. In addition the parsing seems to also work if I add a comment or a function definition between the export statement and the include statement.

gcv commented 4 years ago

Parser bug. Should be fixed in 3e57c07, will be in MELPA soon.

orialb commented 4 years ago

Thanks for the quick fix. I can confirm it is working for me.