help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Counting SLOC in Emacs


From: Robert Thorpe
Subject: Re: Counting SLOC in Emacs
Date: Tue, 02 Dec 2014 20:43:48 +0000

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

>>      (* foo bar
>>       * baz *)
>>
>> will count as 1 lines, IIUC.  And similarly
>>
>>      printf ("toto\n"); (* foo bar
>>                          * baz *)
>>
>> will count as 2 lines.  You might want to try something like:
>
> Hm.  Didn't think of this.  (I'm not really accustomed to multi-line
> comments, I guess.)

I think for practical purposes it's best to use script like David
Wheeler's SLOCount called from Emacs.

Re-writing it in Elisp is an interesting exercise though.

BR,
Robert Thorpe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]