Menu

#10 Language Filter Def

v1.61
closed
nobody
None
1
2015-06-27
2014-03-31
Anonymous
No

const SWORD table[10] =
{
/*cmt*/ A=B;
/*cmt*/ X=Y;
/* cmt1,
cmt2 */
} /*
cmt2 */;

I use cloc 1 .60 to count LOC of this C source code. The result is 4. It should be 3 (do not count comment, curly brackets {,} and semicolon ;). I try language definition with "filter remove_matches ^\s[{}]\s$" but it does not solve the problem. I think the problem is caused by semicolon (;) in last line. Is there any way to solve this problem. Thank you.

Discussion

  • Al Danial

    Al Danial - 2014-03-31

    try

    filter remove_matches ^\s[{};]\s$
    
     
  • Al Danial

    Al Danial - 2014-03-31
    • status: open --> pending
     
  • Al Danial

    Al Danial - 2015-06-27
    • status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.