[ESS] ess-eval-region ignore stata comments?
Vitalie Spinu
spinuvit at gmail.com
Fri Aug 3 21:59:58 CEST 2012
>> Paul Burkander <paul at burkander.com>
>> on Fri, 3 Aug 2012 12:20:04 -0400 wrote:
> Is there a way to make ess-eval-region ignore stata comments?
> If I have the following code as my region:
> /* foo */
> di "bar"
> I get
> . /* foo */
> unrecognized command: / invalid command name
> r(199);
> .
> . di "bar"
> bar
But C-c C-c skips comments right? This should be the default.
With ess-eval-region is a bit trickier. It's pretty easy to remove one
liner, but considerably much more difficult to get rid of multiline
comments.
Does stata support multilne comments? That is, doe you need
/* foo
zoo
*/
di "bar"
or, just handling
/* foo */
/* zoo */
di "bar"
would be enough?
Vitalie.
> Which isn't terrible, since it at least gets to the display command.
> However, if the comment is in a loop, it breaks the loop. Is there
> any way to make ESS skip the commented line?
> Thanks!
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list