gnuplot-mode icon indicating copy to clipboard operation
gnuplot-mode copied to clipboard

gnuplot 4.6 do for loop indentation

Open impaktor opened this issue 12 years ago • 1 comments

indentation (and syntax highlighting) for "do for"-loops (new in gnuplot 4.6) is lacking. One would like something like:

do for [ii=1:499] {
    splot 'file' u 1:2:($3/maxv) every :::ii::
}

impaktor avatar Nov 13 '13 15:11 impaktor

thanks for pointing this out! I created a new "loop-indentation" branch and added a quick solution.

I don't use this feature of gnuplot, though, so it's hard for me to tell whether this code works. I'll try to think more about this when I have time, but it would be great if you could add some examples to the tests/indentation.gnuplot file. That would give me a better sense of how the indentation should work.

mkmcc avatar Nov 19 '13 23:11 mkmcc