gnuplot-mode
gnuplot-mode copied to clipboard
gnuplot 4.6 do for loop indentation
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::
}
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.