kakoune icon indicating copy to clipboard operation
kakoune copied to clipboard

Update julia.kak

Open VarLad opened this issue 4 years ago • 4 comments

Enabling features like auto-indent for julia files.

VarLad avatar Feb 07 '21 09:02 VarLad

Hello,

Sorry for the huge delay in revewing that, can you add a copyright waiver commit to it ? (see the CONTRIBUTING file) ?

mawww avatar Apr 18 '21 07:04 mawww

@mawww Sorry for responding late :sweat_smile: Added the copyright waiver

VarLad avatar May 08 '21 11:05 VarLad

@mawww Uhhh.... any update?

VarLad avatar Jun 11 '21 18:06 VarLad

Thanks for this! some quick playing around and it seems quite nice. I've updated my local installation with these changes.

Having a function line followed by a begin then some statements then an end results in all indentation for that last line being removed. For example:

function cool()
    begin
        println("cool")
end

Adding begin to line 87 seems to fix it? But I'm not sure, I'm a bit unfamiliar with a lot of these commands.

Also, end sometimes gets indented (not deindented)

function cool()
    if true
        if false
        end
    end # This was manually deindented before typing the next end.
        end

This one I'm not really sure of the reason why.

mbarbar avatar Jul 17 '22 14:07 mbarbar